Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2017-06-11 18:31:22
阅读次数:
249
概述 HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,他是一种制作万维网页面标准语言(标记)。相当于定义统一的一套规则,大家都来遵守他,这样就可以让浏览器根据标记语言的规则去解释它。 浏览器负责将标签翻译成用户“看得懂”的格式,呈现给用户!(例:djan ...
分类:
Web程序 时间:
2017-06-11 18:29:37
阅读次数:
274
A square township has been divided up into N2 square plots (1 <= N <= 7). The Farm is located in the upper left plot and the Market is located in the ...
分类:
其他好文 时间:
2017-06-11 17:22:56
阅读次数:
201
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution sti ...
分类:
其他好文 时间:
2017-06-11 16:24:27
阅读次数:
222
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. F ...
分类:
其他好文 时间:
2017-06-10 22:30:32
阅读次数:
152
可以使用RotateAround,代码如下: 其中第一个参数是要围绕哪一个对象来旋转,Sun.transform.position表示的是Sun的中心点。 第二个参数是指要围绕哪一个轴来旋转,Vector3.down表示围绕y轴负向旋转(也可以理解为逆时针),如果是Vector.up表示顺时针。 第 ...
分类:
编程语言 时间:
2017-06-10 17:07:13
阅读次数:
328
https://blogs.msdn.microsoft.com/askjay/2012/07/29/do-waiting-or-suspended-tasks-tie-up-a-worker-thread/ https://blogs.msdn.microsoft.com/askjay/2012/ ...
分类:
其他好文 时间:
2017-06-10 13:47:21
阅读次数:
228
Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? Solution: # this is could also be ...
分类:
其他好文 时间:
2017-06-10 12:21:12
阅读次数:
141
写一个函数推断两个字符串是否是变位词。变位词(anagrams)指的是组成两个单词的字符同样,但位置不同的单词。比方说, abbcd和abcdb就是一对变位词 这也是简单的题。 我们能够排序然后对照, 也能够直接统计字符出现的个数来推断。这里给出统计字符来推断的代码: bool isAnagram1 ...
分类:
其他好文 时间:
2017-06-10 10:40:27
阅读次数:
195
因为最近要开的窗口太多了,使用才使用terminator,发现它极大地满足了我的需求,现在用着觉得非常方案,下面是比较常用的快捷键:标签内:
Alt+Up//移动到上面的终端
Alt+Down//移动到下面的终端
Alt+Left//移动到左边的终端
Alt+Right//移动到右边的终端
Ctrl+Shift+O//水平..
分类:
其他好文 时间:
2017-06-09 17:26:52
阅读次数:
253