摘要: Pascal's TriangleGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,... 阅读全文
posted @ 2014-10-12 22:07 陆草纯 阅读(3685) 评论(0) 推荐(1) 编辑
摘要: N-QueensThen-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all... 阅读全文
posted @ 2014-10-12 13:56 陆草纯 阅读(1547) 评论(0) 推荐(0) 编辑