上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
摘要: 题目: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician J 阅读全文
posted @ 2015-12-12 08:55 YRB 阅读(1095) 评论(0) 推荐(0)
摘要: 题目: An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations: a) it --> it (no ab 阅读全文
posted @ 2015-12-12 07:30 YRB 阅读(1457) 评论(0) 推荐(0)
摘要: 题目: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exi 阅读全文
posted @ 2015-12-12 03:55 YRB 阅读(1113) 评论(0) 推荐(0)
摘要: 题目: You are given a m x n 2D grid initialized with these three possible values. -1 - A wall or an obstacle. 0 - A gate. INF - Infinity means an empty 阅读全文
posted @ 2015-12-11 12:23 YRB 阅读(2087) 评论(0) 推荐(0)
摘要: 题目: Given a binary search tree and a node in it, find the in-order successor of that node in the BST. Note: If the given node has no in-order successo 阅读全文
posted @ 2015-12-11 08:07 YRB 阅读(3630) 评论(0) 推荐(0)
摘要: 题目: Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- 阅读全文
posted @ 2015-12-11 05:25 YRB 阅读(703) 评论(0) 推荐(0)
摘要: 题目: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, 阅读全文
posted @ 2015-12-11 03:33 YRB 阅读(323) 评论(0) 推荐(0)
摘要: 题目:Given a string that contains only digits0-9and a target value, return all possibilities to addbinaryoperators (not unary)+,-, or*between the digits... 阅读全文
posted @ 2015-12-11 03:24 YRB 阅读(1313) 评论(0) 推荐(0)
摘要: 题目:Given two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 = [3, 4, 5, 6]By c... 阅读全文
posted @ 2015-12-10 12:35 YRB 阅读(945) 评论(0) 推荐(0)
摘要: 题目: Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3, 5, 2, 1, 6, 阅读全文
posted @ 2015-12-10 12:00 YRB 阅读(599) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页