上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 77 下一页
摘要: [抄题]: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, ea 阅读全文
posted @ 2018-08-03 17:14 苗妙苗 阅读(242) 评论(0) 推荐(0)
摘要: [抄题]: There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a  阅读全文
posted @ 2018-08-03 16:14 苗妙苗 阅读(167) 评论(0) 推荐(0)
摘要: [抄题]: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / opera 阅读全文
posted @ 2018-08-03 11:22 苗妙苗 阅读(180) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ 阅读全文
posted @ 2018-08-03 10:35 苗妙苗 阅读(328) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appe 阅读全文
posted @ 2018-08-03 08:37 苗妙苗 阅读(311) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You may 阅读全文
posted @ 2018-08-02 22:04 苗妙苗 阅读(135) 评论(0) 推荐(0)
摘要: [抄题]: Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: A partially filled sudoku 阅读全文
posted @ 2018-08-02 16:54 苗妙苗 阅读(213) 评论(0) 推荐(0)
摘要: [抄题]: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For exa 阅读全文
posted @ 2018-08-02 15:52 苗妙苗 阅读(159) 评论(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 阅读全文
posted @ 2018-08-02 09:46 苗妙苗 阅读(199) 评论(0) 推荐(0)
摘要: [抄题]: Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your 阅读全文
posted @ 2018-08-01 22:32 苗妙苗 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 77 下一页