上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: Serialize and Deserialize Binary TreeSerialization is the process of converting a data structure or object into a sequence of bits so that it can be s... 阅读全文
posted @ 2015-10-31 18:30 `Liok 阅读(587) 评论(0) 推荐(0) 编辑
摘要: Bulls and CowsYou are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, eac... 阅读全文
posted @ 2015-10-31 16:48 `Liok 阅读(522) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the or... 阅读全文
posted @ 2015-10-25 20:42 `Liok 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, r... 阅读全文
posted @ 2015-10-25 20:38 `Liok 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt... 阅读全文
posted @ 2015-10-18 17:14 `Liok 阅读(519) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted Array IIFollow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums... 阅读全文
posted @ 2015-10-18 17:03 `Liok 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Nim GameYou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 t... 阅读全文
posted @ 2015-10-13 15:19 `Liok 阅读(599) 评论(0) 推荐(0) 编辑
摘要: Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr... 阅读全文
posted @ 2015-10-11 16:53 `Liok 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Path SumGiven 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 give... 阅读全文
posted @ 2015-10-11 16:45 `Liok 阅读(516) 评论(0) 推荐(0) 编辑
摘要: Game of LifeAccording to theWikipedia's article: "TheGame of Life, also known simply asLife, is a cellular automaton devised by the British mathematic... 阅读全文
posted @ 2015-10-10 23:09 `Liok 阅读(536) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页