自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

西施豆腐渣

leetcode solutions by java, c++ and python

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除