dfs
文章平均质量分 69
baladeer
CV菜鸟
展开
-
22. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ "((()))", "(()())", "(())()", "()(())原创 2018-01-14 02:42:31 · 125 阅读 · 0 评论 -
544. Output Contest Matches
During the NBA playoffs, we always arrange the rather strong team to play with the rather weak team, like make the rank 1 team play with the rank nth team, which is a good strategy to make the conte原创 2018-01-14 03:10:02 · 213 阅读 · 0 评论 -
109. Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tree is defined as a binary tree in which th原创 2018-01-09 22:33:58 · 99 阅读 · 0 评论 -
681. Next Closest Time
Given a time represented in the format "HH:MM", form the next closest time by reusing the current digits. There is no limit on how many times a digit can be reused. You may assume the given input str原创 2018-01-10 14:56:12 · 290 阅读 · 0 评论