2015年9月27日

摘要: 1 题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in th... 阅读全文
posted @ 2015-09-27 21:32 聆听V风声 阅读(398) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目:根据给出的数独,全部填出来2 思路:为了做出来,我自己人工做了一遍题目给的数独。思路是看要填的数字横、竖、子是否已经有1-9的数字,有就剔除一个,最后剩下一个的话,就填上。一遍一遍的循环,直到填完为止。后来发现,这个思路只能解决部分数独。还有部分数独是需要回溯的,比如,这个位置只能填3或5... 阅读全文
posted @ 2015-09-27 19:59 聆听V风声 阅读(423) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled w... 阅读全文
posted @ 2015-09-27 19:52 聆听V风声 阅读(105) 评论(0) 推荐(0) 编辑