摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol... 阅读全文
posted @ 2014-08-04 14:47 bigbigtree 阅读(1195) 评论(0) 推荐(0)
摘要: Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc... 阅读全文
posted @ 2014-08-04 10:44 bigbigtree 阅读(2854) 评论(0) 推荐(0)