Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:
Try to come up as many solutions as you can, ther...
分类:
其他好文 时间:
2015-07-06 12:13:32
阅读次数:
79
RobotsTime Limit:1000MSMemory Limit:10000KTotal Submissions:4037Accepted:1845DescriptionYour company provides robots that can be used to pick up litte...
分类:
其他好文 时间:
2015-07-06 11:43:59
阅读次数:
171
常用热键多重文本选择:ctrl + cmd + g多重光标选择:shift + ctrl + up/down选择标签本身:shift + ctrl + a选择标签内容:shift + cmd + a重新打开刚刚关闭的标签页:cmd + shift + t括号前后移动光标:ctrl + m向光标前插入...
分类:
其他好文 时间:
2015-07-06 10:06:14
阅读次数:
104
HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,它规定了自己的语法规则,用来表示比“文本”更丰富的意义,比如图片,表格,链接等。浏览器(IE,FireFox等)软件知道HTML语言的语法,可以用来查看HTML文档。目前互联网上的绝大部分网页都是使用HTM...
分类:
Web程序 时间:
2015-07-05 21:15:21
阅读次数:
227
1. Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of ...
分类:
其他好文 时间:
2015-07-05 19:49:25
阅读次数:
93
Bring It All Back -S Club 7Don't stop, never give up,Hold your head high and reach the top,Let the World see what you have got,Bring it all back to yo...
分类:
其他好文 时间:
2015-07-05 16:18:49
阅读次数:
141
https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/Remove Duplicates from Sorted Array IIFollow up for "Remove Duplicates":What if d...
分类:
编程语言 时间:
2015-07-05 12:19:38
阅读次数:
131
用PPA安装Android-Studio炒鸡简单,墙内亲测可用,就是速度慢了点。(睡觉时开着电脑装~)安装Android-Studio打开Terminal,执行:sudo add-apt-repository ppa:paolorotolo/android-studiosudo apt-get up...
分类:
移动开发 时间:
2015-07-05 10:52:35
阅读次数:
177
Given 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 sum = 2...
分类:
其他好文 时间:
2015-07-04 15:32:56
阅读次数:
95
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-07-04 00:44:40
阅读次数:
132