上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页
摘要: Remove Node in Binary Search TreeGiven a root of Binary Search Tree with unique value for each node. Remove the node with given value. If there is no ... 阅读全文
posted @ 2015-07-09 22:29 Eason Liu 阅读(726) 评论(0) 推荐(0) 编辑
摘要: Power of TwoGiven an integer, write a function to determine if it is a power of two.Credits:Special thanks to@jianchao.li.fighterfor adding this probl... 阅读全文
posted @ 2015-07-06 20:36 Eason Liu 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Kth Smallest Element in a BSTGiven a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is alw... 阅读全文
posted @ 2015-07-02 14:54 Eason Liu 阅读(1148) 评论(0) 推荐(0) 编辑
摘要: Count PairsDescriptionYou are given n circles centered on Y-aixs. The ith circle’s center is at point (i, 0) and its radius is A[i]. Count the number ... 阅读全文
posted @ 2015-07-01 23:27 Eason Liu 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Find the Weak Connected Component in the Directed GraphFind the number Weak Connected Component in the directed graph. Each node in the graph contains... 阅读全文
posted @ 2015-06-29 13:34 Eason Liu 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: Majority Element IIGiven an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm should run in linear time and i... 阅读全文
posted @ 2015-06-29 10:44 Eason Liu 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Find the Connected Component in the Undirected GraphFind the number connected component in the undirected graph. Each node in the graph contains a lab... 阅读全文
posted @ 2015-06-28 22:37 Eason Liu 阅读(1310) 评论(0) 推荐(1) 编辑
摘要: 题目1 : 连通性·一时间限制:10000ms单点时限:1000ms内存限制:256MB描述还记得上次小Hi和小Ho学校被黑客攻击的事情么,那一次攻击最后造成了学校网络数据的丢失。为了避免再次出现这样的情况,学校决定对校园网络进行重新设计。学校现在一共拥有N台服务器(编号1..N)以及M条连接,保证... 阅读全文
posted @ 2015-06-27 22:34 Eason Liu 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Summary RangesGiven a sorted integer array without duplicates, return the summary of its ranges.For example, given[0,1,2,4,5,7], return["0->2","4->5",... 阅读全文
posted @ 2015-06-26 13:48 Eason Liu 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 题目1 : 欧拉路·二时间限制:10000ms单点时限:1000ms内存限制:256MB描述在上一回中小Hi和小Ho控制着主角收集了分散在各个木桥上的道具,这些道具其实是一块一块骨牌。主角继续往前走,面前出现了一座石桥,石桥的尽头有一道火焰墙,似乎无法通过。小Hi注意到在桥头有一张小纸片,于是控制主... 阅读全文
posted @ 2015-06-21 20:30 Eason Liu 阅读(337) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 30 下一页