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 ...
分类:
其他好文 时间:
2017-01-14 17:15:15
阅读次数:
219
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such p ...
分类:
其他好文 时间:
2017-01-12 18:58:48
阅读次数:
226
错误1"aa""bb"static public bool IsAnagram(string s, string t) { int sLength = s.Length; int tLength = t.Length; if (sLength != tLength) { return false; ... ...
分类:
其他好文 时间:
2017-01-10 23:40:51
阅读次数:
216
在引用hibernater-validator jar包时一直抛出异常,在引用带有该包的项目,或者同时在一个项目中使用该包和validator包都会抛出以下异常 最后发现是在Eclipse环境下,不能同时存在(Hibernate-commons-annotations、hibernate-valid ...
分类:
编程语言 时间:
2017-01-10 11:33:25
阅读次数:
229
刚入手的MacBook想着学点东西,本汪还是决定玩玩CentOS服务器,安装好了VirtualBox + CentOS。 打开一看,懵逼了!命令行! 行吧,先装个图形界面: 哒哒哒~ 命令一敲,来事儿了 连不上网啊,大爷!找资料在网上看到 hopkings 的解决方案: 先整了方法二,行不通,还是不 ...
分类:
Web程序 时间:
2017-01-06 21:48:22
阅读次数:
532
踩坑 做编辑器一些设置序列化存在本地的时候,继承自ScriptableObject的类通过 创建的asset文件. 在重启Unity后查看这个asset发现上面的所有序列化属性丢失,报的错就是 在不存在的网站找了一番之后,找到答案 需要本地序列化的ScriptableObject必须拥有自己的同名实 ...
分类:
编程语言 时间:
2017-01-06 12:33:41
阅读次数:
539
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2017-01-05 07:50:54
阅读次数:
139
今天看到spring mvc 使用Java Validation Api(JSR-303)进行校验,需要加载一个 其具体实现(比如Hibernate Validator), 本来没有什么问题,但是突然想到这其中到底是怎样一种加载过程呢,也就是说spring为什么能够找到Hibernate Valid ...
分类:
编程语言 时间:
2017-01-04 10:39:43
阅读次数:
216
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c... ...
分类:
其他好文 时间:
2017-01-04 00:00:04
阅读次数:
404
今天在虚拟机下安装centosmini版本,安装后第一件事就是yum update 但是有错:cannot find a valid baseurl for repo base base 百度了半天也没个很靠谱的,最后google了一下,马上就出来了。 具体链接在这里http://unix.stac ...
分类:
Web程序 时间:
2017-01-03 18:42:53
阅读次数:
198