2016年1月4日

3Sum Closest

摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文

posted @ 2016-01-04 23:49 walkwalkwalk 阅读(224) 评论(0) 推荐(0) 编辑

N-Queens

摘要: 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 @ 2016-01-04 23:36 walkwalkwalk 阅读(163) 评论(0) 推荐(0) 编辑

导航