- 博客(6)
- 收藏
- 关注
转载 【Leetcode】Generate Parent
【题目】 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: "((()))", "(()())", "(())()", "()((
2015-01-12 14:22:55 326
转载 【Leetcode】Unique Paths
【题目】 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to
2015-01-06 17:05:05 324
转载 【LeetCode】Find Minimum In Rotated Sorted Array 1 and 2
【题目】 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element. You may assume no duplicate
2015-01-05 10:20:39 282
原创 【Leetcode】Swap Nodes in Pairs
【题目】 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant
2015-01-03 11:53:30 377
原创 【Leetcode】Excel sheet Column title
【题目】 Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB
2015-01-03 10:02:07 246
原创 【Leetcode】Excel Sheet Column Number
【题目】 Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3
2015-01-03 09:32:06 251
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人