代码的GitHub地址:https://github.com/Liu-SD/sudoku 解题思路描述 题目要求分为两个部分,一个是解数独,一个是自动生成数独。并且生成数独时对第一个数字做出了限制。所以可以认为自动生成数独是只有一个数字限制时的解数独。所以说这两者大部分的实现算法是相同的。解数独时是 ...
分类:
其他好文 时间:
2017-09-24 11:39:02
阅读次数:
160
680. Valid Palindrome II【easy】 Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1 ...
分类:
其他好文 时间:
2017-09-23 18:51:12
阅读次数:
201
125. Valid Palindrome【easy】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, ...
分类:
其他好文 时间:
2017-09-23 16:15:52
阅读次数:
137
class Solution { public void solveSudoku(char[][] board) { boolean[][][] used=new boolean[3][9][9]; for(int i=0;i<9;i++) for(int j=0;j<9;j++) if(board... ...
分类:
其他好文 时间:
2017-09-23 15:26:29
阅读次数:
147
public class Solution { public boolean isValidSudoku(char[][] board) { boolean[][][] used=new boolean[3][9][9]; for(int i=0;i<9;i++) for(int j=0;j<9;j... ...
分类:
其他好文 时间:
2017-09-23 14:31:06
阅读次数:
140
mavn 编译报错: mavn sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unab ...
分类:
其他好文 时间:
2017-09-23 13:42:24
阅读次数:
824
class Solution { public int longestValidParentheses(String s) { int left=-1; Stack stack=new Stack(); int ret=0; for(int i=0;i<s.length();i++) { ... ...
分类:
其他好文 时间:
2017-09-23 13:41:19
阅读次数:
206
1: @Valid 注解 @NotNull(message="名字不能为空") private String userName; @Max(value=120,message="年龄最大不能查过120") private int age; @Email(message="邮箱格式错误") priva ...
分类:
编程语言 时间:
2017-09-23 00:01:30
阅读次数:
219
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa ...
分类:
其他好文 时间:
2017-09-20 19:36:17
阅读次数:
167
Requirements Mac OS X. Tested on Snow Leopard only. You need to have a valid iPhone development certificate installed. Xcode must be installed, along ...
分类:
移动开发 时间:
2017-09-20 16:37:59
阅读次数:
332