摘要: Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.Solution: 1 public class S... 阅读全文
posted @ 2014-10-18 07:32 Phoebe815 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.Solution:N-Queens 问题的简化版。pu... 阅读全文
posted @ 2014-10-18 07:22 Phoebe815 阅读(112) 评论(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-10-18 07:10 Phoebe815 阅读(161) 评论(0) 推荐(0) 编辑