棋子

导航

12 2015 档案

Sudoku Solver Backtracking
摘要:该博客好好分析Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there wil... 阅读全文

posted @ 2015-12-27 23:38 鼬与轮回 阅读(262) 评论(0) 推荐(0) 编辑

Valid Sudoku leetcode
摘要:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ... 阅读全文

posted @ 2015-12-27 21:04 鼬与轮回 阅读(188) 评论(0) 推荐(0) 编辑

《如何求解问题》-现代启发式方法
摘要:心情急躁,就无法获得很多人称之为艺术的东西;求解的艺术不在于你能够随时随地的给出一个堪称典范的解法; 即使是学习了一大堆的知识,我们也没有记住多少;因为大脑有一个或者是缺陷,也或者正是其美妙的地方——他并不记住所有的一切。似乎用这一点来划分它与电脑的区别。知识没有获得,学习只是将我们自... 阅读全文

posted @ 2015-12-27 14:15 鼬与轮回 阅读(349) 评论(0) 推荐(0) 编辑

Next Permutation
摘要:原题地址:https://leetcode.com/submissions/detail/48922153/ 所谓一个排列的下一个排列的意思就是 这一个排列与下一个排列之间没有其他的排列。这就要求这一个排列与下一个排列有尽可能长的共同前缀,也即变化限制在尽可能短的后缀上。这句话的意思我一直没弄明白! 阅读全文

posted @ 2015-12-26 13:45 鼬与轮回 阅读(262) 评论(0) 推荐(0) 编辑

Excel Sheet Column Title
摘要:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文

posted @ 2015-12-25 19:08 鼬与轮回 阅读(222) 评论(0) 推荐(0) 编辑

Remove Linked List Elements
摘要:Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,val= 6Return:1 --> 2 --> 3 --... 阅读全文

posted @ 2015-12-25 13:28 鼬与轮回 阅读(117) 评论(0) 推荐(0) 编辑

Substring with Concatenation of All Words
摘要:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concatena... 阅读全文

posted @ 2015-12-24 14:53 鼬与轮回 阅读(191) 评论(0) 推荐(0) 编辑

Divide Two Integers leetcode
摘要:题目:Divide Two IntegersDivide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.看讨论区大神的思路:In this ... 阅读全文

posted @ 2015-12-22 00:42 鼬与轮回 阅读(190) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示