上一页 1 2 3 4 5 6 ··· 33 下一页
摘要: Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto 阅读全文
posted @ 2018-11-26 05:20 Hygeia 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2018-10-17 09:42 Hygeia 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert the value into the BST. Return the root node of the 阅读全文
posted @ 2018-10-15 05:19 Hygeia 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a 阅读全文
posted @ 2018-10-15 05:00 Hygeia 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given t 阅读全文
posted @ 2018-10-15 03:38 Hygeia 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path betwe 阅读全文
posted @ 2018-10-15 03:26 Hygeia 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2018-10-09 00:12 Hygeia 阅读(102) 评论(0) 推荐(0) 编辑
摘要: There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent 阅读全文
posted @ 2018-10-08 23:34 Hygeia 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 先来个图: 引自: https://www.geeksforgeeks.org/deque-interface-java-example/ 阅读全文
posted @ 2018-10-08 11:21 Hygeia 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Among all leetcode questions, I find that there are at least 5 substring search problem which could be solved by the sliding window algorithm. templat 阅读全文
posted @ 2017-02-28 06:24 Hygeia 阅读(966) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 33 下一页