Fork me on GitHub
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo 阅读全文
posted @ 2017-06-18 17:30 hellowOOOrld 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s 阅读全文
posted @ 2017-06-18 16:12 hellowOOOrld 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer a, find the smallest positive integer b whose multiplication of each digit equals to a. If there is no answer or the answer i 阅读全文
posted @ 2017-06-18 12:57 hellowOOOrld 阅读(397) 评论(0) 推荐(0) 编辑
摘要: Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given depth d. The root node is at depth 阅读全文
posted @ 2017-06-18 11:59 hellowOOOrld 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal 阅读全文
posted @ 2017-06-18 11:44 hellowOOOrld 阅读(524) 评论(0) 推荐(0) 编辑