上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页
摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文
posted @ 2014-07-10 19:39 SunshineAtNoon 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题解:参见http://www.cnblogs.com/sunshineatnoon... 阅读全文
posted @ 2014-07-10 18:45 SunshineAtNoon 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2014-07-10 18:37 SunshineAtNoon 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文
posted @ 2014-07-10 18:23 SunshineAtNoon 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri... 阅读全文
posted @ 2014-07-07 18:50 SunshineAtNoon 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.题解:因为题目要求原地算法,所以我们只能利用矩阵第一行和第一列存放置零信息。首先遍历第一行和第一列,看他们是否需要全部置零... 阅读全文
posted @ 2014-07-07 18:08 SunshineAtNoon 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 在Youtube上找到靠谱的教程:http://www.youtube.com/watch?v=WN2tJk_oL6E同时把作者的教程下载下来放在百度云盘上了:http://pan.baidu.com/s/1qWqHvM8这个教程安装的是Hadoop1.1.2,不过安装Hadoop2.2.0差不多,... 阅读全文
posted @ 2014-07-06 11:18 SunshineAtNoon 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2... 阅读全文
posted @ 2014-07-06 00:09 SunshineAtNoon 阅读(528) 评论(0) 推荐(0) 编辑
摘要: Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文
posted @ 2014-07-04 21:06 SunshineAtNoon 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?判断一... 阅读全文
posted @ 2014-07-04 20:03 SunshineAtNoon 阅读(414) 评论(0) 推荐(1) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页