摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array , the contiguous 阅读全文
posted @ 2017-04-04 21:31
aiterator
阅读(90)
评论(0)
推荐(0)
摘要:
The n queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all 阅读全文
posted @ 2017-04-04 21:25
aiterator
阅读(119)
评论(0)
推荐(0)
摘要:
Follow up for N Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. 上一题,稍微修改一下就可以了。 C++ class 阅读全文
posted @ 2017-04-04 21:25
aiterator
阅读(120)
评论(0)
推荐(0)

浙公网安备 33010602011771号