上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 49 下一页
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height balanced binary tree is d 阅读全文
posted @ 2018-12-02 21:58 A-Little-Nut 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the bottom up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2018-12-02 21:57 A-Little-Nut 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2018-12-02 21:55 A-Little-Nut 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2018-12-02 21:52 A-Little-Nut 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For example, Given n = 3, there are a total of 5 unique BST’s 阅读全文
posted @ 2018-11-29 22:04 A-Little-Nut 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1…n. For example, Given n = 3, your program should 阅读全文
posted @ 2018-11-29 22:03 A-Little-Nut 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2018-11-29 22:00 A-Little-Nut 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Follow up for “Unique Paths”: Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文
posted @ 2018-11-29 21:57 A-Little-Nut 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and ' '. The matching should cover the entire 阅读全文
posted @ 2018-11-29 21:49 A-Little-Nut 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: "cbbd" "bb" 阅读全文
posted @ 2018-11-29 21:41 A-Little-Nut 阅读(100) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 49 下一页