上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 54 下一页
摘要: Contains Duplicate I Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at l 阅读全文
posted @ 2016-10-10 06:04 北叶青藤 阅读(258) 评论(0) 推荐(0)
摘要: Construct minimum number by reordering a given non-negative integer array. Arrange them such that they form the minimum number. Notice The result may 阅读全文
posted @ 2016-09-15 02:01 北叶青藤 阅读(376) 评论(0) 推荐(0)
摘要: There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words from the 阅读全文
posted @ 2016-09-01 23:07 北叶青藤 阅读(287) 评论(0) 推荐(0)
摘要: Given a binary tree, find the largest subtree which is a Binary Search Tree (BST), where largest means subtree with largest number of nodes in it. Not 阅读全文
posted @ 2016-08-09 10:18 北叶青藤 阅读(272) 评论(0) 推荐(0)
摘要: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible roote 阅读全文
posted @ 2016-08-09 09:17 北叶青藤 阅读(224) 评论(0) 推荐(0)
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2016-08-09 03:59 北叶青藤 阅读(296) 评论(0) 推荐(0)
摘要: Union-Find Algrithm is used to check whether two components are connected or not. Examples: By using the graph, we can easily find whether two compone 阅读全文
posted @ 2016-08-09 02:25 北叶青藤 阅读(635) 评论(0) 推荐(0)
摘要: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John 阅读全文
posted @ 2016-08-08 22:13 北叶青藤 阅读(406) 评论(0) 推荐(0)
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating 阅读全文
posted @ 2016-08-08 11:39 北叶青藤 阅读(333) 评论(0) 推荐(0)
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2016-08-08 10:11 北叶青藤 阅读(268) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 54 下一页