问题描写叙述: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are fi ...
分类:
其他好文 时间:
2017-05-25 20:46:21
阅读次数:
229
今天在通过OData终结点update记录的时候报"Error processing request stream. The request should be a valid top-level resource object”。经过谷歌查询后发现是属性赋值时格式不正确。事实上从英文的字面意思也能 ...
分类:
其他好文 时间:
2017-05-25 11:38:46
阅读次数:
195
http://www.lintcode.com/en/problem/graph-valid-tree/ DFS 解法: Union Find 解法: 这道题还可以用 BFS 解。 ...
分类:
其他好文 时间:
2017-05-25 01:16:02
阅读次数:
260
最新的tomcat6,7,8增加了新特性,就是严格按照 RFC 3986规范进行访问解析,而 RFC 3986规范定义了Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~4个特殊字符以及所有保留字符(RFC3986中指定了以下字符为保留字符:! * ’ ( ) ; : @ & = ...
分类:
其他好文 时间:
2017-05-23 17:24:04
阅读次数:
524
Given the coordinates of four points in 2D space, return whether the four points could construct a square.The coordinate (x,y) of a point is represent ...
分类:
其他好文 时间:
2017-05-21 12:53:57
阅读次数:
134
关于这道题目,不得不感慨leetcode真的是一个不错的站点,之前的代码是有bug的,当时AC了,如今測试用例更加完好了,于是不能AC了。 题目描写叙述: Given a binary tree, determine if it is a valid binary search tree (BST) ...
分类:
其他好文 时间:
2017-05-21 11:47:35
阅读次数:
168
springmvc使用JSR-303进行表单验证不生效的问题 spring只是支持jsr-303验证,但却不提供jsr-303的实现,文档中提及了需要导入类如hibernate-validator等jsr-303的实现,spring的表单验证才会生效。 ...
分类:
编程语言 时间:
2017-05-20 15:26:48
阅读次数:
252
Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets ...
分类:
其他好文 时间:
2017-05-20 10:05:14
阅读次数:
124
//解密數據 using (var ss = File.OpenRead(@"d:\qq.d.flac")) { using (FileStream w = new FileStream(@"d:\qq.flac", FileMode.Create)) { using (var cs = AesSt ...
记录下遇到的问题: 提示ruby错误 $gem install gollum ERROR: Could not find a valid gem 'gollum' (>= 0), here is why: Unable to download data from https://rubygems.o ...
分类:
其他好文 时间:
2017-05-19 17:41:38
阅读次数:
230