https://oj.leetcode.com/problems/valid-sudoku/Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partia...
分类:
其他好文 时间:
2015-02-28 21:32:40
阅读次数:
223
??
由于Java编译器的水平不相匹配的版本的问题,经常出现该项目显示一个红色的x*(也可能是相应的jar文件的路径改变引起的),在window->show views->problems查看该问题的具体情况,如下:
java compiler level does not match the version of the installed java project facet:
决解方法...
分类:
编程语言 时间:
2015-02-28 18:41:32
阅读次数:
143
https://oj.leetcode.com/problems/path-sum-ii/Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For...
分类:
其他好文 时间:
2015-02-28 16:14:26
阅读次数:
155
https://oj.leetcode.com/problems/validate-binary-search-tree/Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is ...
分类:
其他好文 时间:
2015-02-27 21:24:37
阅读次数:
143
https://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/Given a binary tree, return thebottom-up level ordertraversal of its nodes' valu...
分类:
其他好文 时间:
2015-02-27 14:53:37
阅读次数:
133
https://oj.leetcode.com/problems/binary-tree-level-order-traversal/Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from...
分类:
其他好文 时间:
2015-02-27 14:49:54
阅读次数:
178
https://oj.leetcode.com/problems/binary-search-tree-iterator/Implement an iterator over a binary search tree (BST). Your iterator will be initialized ...
分类:
其他好文 时间:
2015-02-26 18:22:37
阅读次数:
206
概率DP kuangbin总结中的第8题 一开始题目看错导致想转移方程想错了……想成f[i][j]表示前 i 个队伍中最多的做出来 j 道题的概率……sigh 看了下题解……其实是对于每个队伍 i 单独考虑做出来 j 道题的概率!!最后再根据情况将t个队伍合并起来……WA:又忘了POJ上dou...
分类:
其他好文 时间:
2015-02-26 18:06:34
阅读次数:
117
https://oj.leetcode.com/problems/rotate-array/publicclassSolution{
publicvoidrotate(int[]nums,intk){
intlen=nums.length;
inthead=len-(k%len);
int[]copy=newint[len];
for(inti=0;i<len;i++)
{
copy[i]=nums[(i+head)%len];
}
for(inti=0;i<len;i++)
{
nums[i]=..
分类:
其他好文 时间:
2015-02-26 00:05:22
阅读次数:
110
https://oj.leetcode.com/problems/repeated-dna-sequences/publicList<String>findRepeatedDnaSequences(Strings){
//Assumptions...
List<String>toReturn=newArrayList<>();
Set<String>seen=newHashSet<>();
for(inti=0;i<=s.length(..
分类:
其他好文 时间:
2015-02-26 00:04:28
阅读次数:
117