摘要: [抄题]: 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 苗妙苗 阅读(140) 评论(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 苗妙苗 阅读(220) 评论(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 苗妙苗 阅读(163) 评论(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 苗妙苗 阅读(203) 评论(0) 推荐(0)