[LeetCode] Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a ca...
[LeetCode] Pascal's Triangle
Pascal's TriangleGiven numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1],  ...
Azure云平台学习之路(二)——SQL Database
1、什么是SQL Database?托管关系数据库,数据库即服务,IaaS的一种。2、有哪些特点?(1)为SaaS应用提供可扩展的数据存储服务。(2)易于操作大量的数据库。稍后介绍几种操作数据库的方法。(3)性能更高,稳定性更好。基于Azure平台,高性能可扩展;多地区容灾备份。(4)接近0维护,无需维护其他硬件设备。(5)支持熟悉的功能、工具和平台。(6)安全和审核功能。3、使用的企业有:4、创...
[LeetCode] Remove Duplicates from Sorted List
Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1-...
[LeetCode] Course Schedule
There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, whi...
[LeetCode] Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?解题思路:动态规划,类似于斐波那契数列。X X X....
Azure云平台学习之路(一)——Azure简介
1、什么是Azure?Microsoft Azure是由微软所发展的一套云计算操作系统(云平台),提供各种优质的服务:计算、存储、数据、网络和应用程序。Azure意为天蓝色、蔚蓝色。2、Azure特点?(1)平台即服务(Platform as a Service,PaaS)+ 基础架构即服务(Infrastructure as a Service,IaaS)。 &...
[LeetCode] Multiply Strings
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.解题思路:按照小学的做法,每位相加即可。这里我定义了两个函...
[LeetCode] Trapping Rain Water
Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Giv...
[LeetCode] First Missing Positive
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm s...
[LeetCode] Reverse Linked List
Reverse Linked ListReverse a singly linked list.解题思路:链表翻转。没有什么很大的难度,画个图分析一下即可。单链表的技巧就是申请一个伪头结点,然后在最后的时候删除即可,这样能够保证中间代码不需要考虑不同的情况。/** * Definition for singly-linked list. &n...
芦苇荡-大话西游插曲
这哥们吹的不错。先把它记录下,以后找时间也录个视频。附上简谱:
[LeetCode] Add Binary
Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".解题思路:题意为两个字符串表示的二进制相加,求结果。记住常字符串与字符串变量能...
[LeetCode] Path Sum
Path SumGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Given the below binary tree and&...
Combination Sum II
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C ...
[LeetCode] Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal IIGiven a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
[LeetCode] Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number m...
滴答-程序远-吉他弹唱
吉他的第一个作品,滴答,音频。您的浏览器不支持html5视频:周末一觉醒来,闲着没事,弹唱滴答。其中有两处弹错了。弹唱的虽然没有起伏,没有感情,也算是自学吉他的一个milestone了,记录一下。以后还得继续努力,希望有所突破。不知为何,声音非常小。后面还有室友的呼吸声哦~以下是对应的吉他谱:
[LeetCode] Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "t...
诗意-程序远-吉他弹唱
五一假期,闲着无聊,躲在宿舍,弹唱诗意~2015.05.01附上吉他谱(本人弹的是版本1):版本1版本2: