08 2016 档案

摘要:56. Merge Intervals Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10] 阅读全文
posted @ 2016-08-26 13:24 新一代的天皇巨星 阅读(192) 评论(0) 推荐(0)
摘要:32. Longest Valid Parentheses Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parenthese 阅读全文
posted @ 2016-08-17 04:33 新一代的天皇巨星 阅读(194) 评论(0) 推荐(0)
摘要:384. Shuffle an Array Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solu 阅读全文
posted @ 2016-08-12 10:03 新一代的天皇巨星 阅读(740) 评论(0) 推荐(0)
摘要:232. Implement Queue using Stacks Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- 阅读全文
posted @ 2016-08-01 06:20 新一代的天皇巨星 阅读(128) 评论(0) 推荐(0)
摘要:151. Reverse Words in a String Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the 阅读全文
posted @ 2016-08-01 04:58 新一代的天皇巨星 阅读(227) 评论(0) 推荐(0)