首页 > 全部
Remove Duplicates from Sorted List
1 public class Solution { 2 3 public ListNode deleteDuplicates(ListNode head) { 4 if(head==null) 5 return null; 6 if(head.next==null){ 7 return head; ...
分类:其他   时间:2014-02-06 16:27:48    收藏:0  评论:0  赞:0  阅读:387
Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le...
分类:其他   时间:2014-02-06 16:26:58    收藏:0  评论:0  赞:0  阅读:366
Subsets
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:其他   时间:2014-02-06 16:25:18    收藏:0  评论:0  赞:0  阅读:423
N-Queens
1 public class Solution { 2 public ArrayList solveNQueens(int n) { 3 ArrayList res = new ArrayList(); 4 if(nres){ 9 if(row==n){10 StringBuilder [] sb ...
分类:其他   时间:2014-02-06 16:24:28    收藏:0  评论:0  赞:0  阅读:393
Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. 1 public class Solution { 2 public void merge(int A[], int m, int B[], in...
分类:其他   时间:2014-02-06 16:23:38    收藏:0  评论:0  赞:0  阅读:394
Android接收短信
Android收到短信时会广播android.provider.Telephony.SMS_RECEIVED消息,因此只要定义一个Receiver,收听该消息,就能接收短信。 还可以为intent-filter加上一个优先级: 这样,由于优先级较高,应用将先于系统接收到android.provide...
分类:移动平台   时间:2014-02-06 16:21:58    收藏:0  评论:0  赞:0  阅读:594
Implement strStr()
Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack. 1 public class Solution { 2 public String st...
分类:其他   时间:2014-02-06 16:22:48    收藏:0  评论:0  赞:0  阅读:381
Climbing Stairs
public class Solution { public int climbStairs(int n) { int f1 = 2; int f2 = 1; if(n<=0) return 0; if(n==1) return f2; if(n==2) return f1; int fn=0; f...
分类:其他   时间:2014-02-06 16:21:08    收藏:0  评论:0  赞:0  阅读:353
二叉树的遍历(一)
根据访问结点操作发生位置命名:① NLR:前序遍历(PreorderTraversal亦称(先序遍历))——访问根结点的操作发生在遍历其左右子树之前。② LNR:中序遍历(InorderTraversal)——访问根结点的操作发生在遍历其左右子树之中(间)。③ LRN:后序遍历(PostorderT...
分类:其他   时间:2014-02-06 16:20:18    收藏:0  评论:0  赞:0  阅读:407
WMI
http://singlepine.cnblogs.com/articles/299457.htmlhttp://www.cnblogs.com/haiq/archive/2011/01/14/1935377.html
分类:其他   时间:2014-02-06 16:19:28    收藏:0  评论:0  赞:0  阅读:305
Add Binary
1 public class Solution { 2 public String addBinary(String a, String b) { 3 int len1 = a.length(); 4 int len2 = b.length(); 5 StringBuilder sb = new S...
分类:其他   时间:2014-02-06 16:17:48    收藏:0  评论:0  赞:0  阅读:347
Plus One
1 public class Solution { 2 public int[] plusOne(int[] digits) { 3 int carry = 1; 4 for(int i=digits.length-1;i>=0;i--){ 5 digits[i] +=carry; 6 carry ...
分类:其他   时间:2014-02-06 16:18:38    收藏:0  评论:0  赞:0  阅读:352
First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他   时间:2014-02-06 16:16:58    收藏:0  评论:0  赞:0  阅读:359
Permutations
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:其他   时间:2014-02-06 16:16:08    收藏:0  评论:0  赞:0  阅读:430
LeetCode: Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:其他   时间:2014-02-06 16:14:28    收藏:0  评论:0  赞:0  阅读:404
IntelliJ IDEA 13.x 下使用Hibernate + Spring MVC + JBoss 7.1.1
从2004年开始做.NET到现在。直到最近要做一些JAVA的项目,如果说100个人写一篇关于.NET的文章,估计这10个人写的内容都是一样。但是如果说10个人写Java的文章,那真的是10个人10种写法。这就是最头痛的地方,开始学的时候真的很迷惑。这里我们使用的是Hibernate 4.x + Sp...
分类:Web开发   时间:2014-02-06 16:15:18    收藏:0  评论:0  赞:0  阅读:449
克隆Wheekling——有些细节问题
正式的2d版本开始了。仿照之前的3d版,先将一些对象进行设置。小球设置:1-添加Collider用Circle Collider合适,并且可以设置Radius,控制碰撞体大小同样赋予一个PhysicMaterial,2d版中参数较少,没有Friction和Bounciness的混合,也没有各向异性。...
分类:其他   时间:2014-02-06 16:12:48    收藏:0  评论:0  赞:0  阅读:463
40多个非常有用的Oracle 查询语句
给大家介绍是40多个非常有用的Oracle 查询语句,主要涵盖了日期操作,获取服务器信息,获取执行状态,计算数据库大小等等方面的查询。这些是所有Oracle 开发者都必备的技能,所以快快收藏吧!日期/时间 相关查询获取当前月份的第一天 运行这个命令能快速返回当前月份的第一天。你可以用任何的日期值替换...
分类:数据库技术   时间:2014-02-06 16:13:38    收藏:0  评论:0  赞:0  阅读:473
转载Entity Framework全面教程
转载原地址:http://www.cnblogs.com/lsxqw2004/archive/2009/05/31/1495240.html#_Toc228672754预备知识 2LINQ技术 2LINQ技术的基础 - C#3.0 2自动属性 2隐式类型 2对象初始化器与集合初始化器 3匿名类 3扩...
分类:其他   时间:2014-02-06 16:11:08    收藏:0  评论:0  赞:0  阅读:508
小试ildasm,ilasm,ilspy
选择了微耕的软件(为什么选择它,因为微耕的二次开发实在太牛了,只给文档,一切技术问题都不回答。文档也是只公开基本的东西) 第一个功能:换文字 第二个功能:插入一个新的程序集,在做某些事情前先做我想做的事情 修改了IL后,直接把需要引用的程序集放到目录中,重新编译IL时会自动寻找 用ILSPY反编译,...
分类:其他   时间:2014-02-06 16:11:57    收藏:0  评论:0  赞:0  阅读:484
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!