摘要: 题目: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,- 阅读全文
posted @ 2016-09-09 22:09 wangxiaobao1114 阅读(164) 评论(0) 推荐(0)
摘要: 题目: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions.(Hard) 分析: 跟昨天的题目一样的思路 阅读全文
posted @ 2016-09-09 22:06 wangxiaobao1114 阅读(144) 评论(0) 推荐(0)