- 博客(6)
- 收藏
- 关注
原创 leetcode 130: Pascal's Triangle II
Pascal's Triangle IIOct 29 '12461 / 1118Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize yo
2013-04-13 17:01:08 2596
原创 leetcode 129: Pascal's Triangle
Pascal's TriangleOct 28 '12456 / 1018Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1],
2013-04-13 16:28:09 792
原创 leetcode 128: Surrounded Regions
Surrounded RegionsFeb 22976 / 3801Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surro
2013-04-10 10:41:25 1563
原创 leetcode 127: N-Queens II
N-Queens IIMar 20 '12Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. A good optimization example: when the req
2013-04-05 16:39:31 755
原创 leetcode 126: Word Ladder ll (uncompleted)
Word Ladder IIFeb 11Given two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one letter can be changed at a t
2013-04-03 09:01:18 1296 2
原创 leetcode 125: Restore IP Addresses (uncompleted)
Restore IP AddressesAug 8 '12Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.25
2013-04-01 13:09:21 865
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人