摘要: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled wit 阅读全文
posted @ 2017-07-11 19:31 王大咩的图书馆 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Given a set of candidate numbers ( C ) and a target number ( T ), find all unique combinations in C where the candidate numbers sums to T . The same r 阅读全文
posted @ 2017-07-11 15:58 王大咩的图书馆 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given a collection of candidate numbers ( C ) and a target number ( T), find all unique combinations in C where the candidate numbers sums to T . Each 阅读全文
posted @ 2017-07-11 15:44 王大咩的图书馆 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文
posted @ 2017-07-11 15:02 王大咩的图书馆 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 本博客是我在做题和看书遇到各种情况的总结。 参考了书,邓俊辉老师编写的《数据结构(C++语言版)(第3版)》,同时还有网友的总结(以下会给出相应的链接)。 一、查找等于目标元素的位置(若是多个,只要求找到即可) 这里关于右边界hi的取值值得注意的有几点: 1)在while循环外面的hi=n,说明是前 阅读全文
posted @ 2017-07-11 13:43 王大咩的图书馆 阅读(465) 评论(0) 推荐(0) 编辑