- 博客(4)
- 收藏
- 关注
原创 leetCode#121. Best Time to Buy and Sell Stock
DescriptionSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of ...
2018-02-28 17:46:42 134
原创 git commit -a
今天提交git时遇到这样一个问题,我在项目里rm掉了许多文件,等到想commit的时候,发现这些被删除的文件都是not staged的状态,这要一个个的去git rm就太蛋疼了。这时候就发现了git commit -a这个命令。OPTIONS-a, --allTell the command to automatically stage files that have been modif...
2018-02-28 11:06:48 6696
原创 leetCode#167. Two Sum II - Input array is sorted
DescriptionGiven an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
2018-02-25 09:59:11 169
原创 leetCode#125. Valid Palindrome
DescriptionGiven 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 car
2018-02-06 23:24:27 148
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人