上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页

2014年12月6日

4Sum

摘要: 4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum... 阅读全文

posted @ 2014-12-06 21:02 luckygxf 阅读(174) 评论(0) 推荐(0) 编辑

3Sum Closest

摘要: 3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three int... 阅读全文

posted @ 2014-12-06 19:55 luckygxf 阅读(161) 评论(0) 推荐(0) 编辑

2014年12月5日

3Sum

摘要: 3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El... 阅读全文

posted @ 2014-12-05 21:53 luckygxf 阅读(227) 评论(0) 推荐(0) 编辑

MySQL存储过程、函数和游标

摘要: 这里我新建了两个表,一个users和test1 CREATE TABLE users(2 username varchar(20),3 pwd varchar(30)4 );5 CREATE TABLE test(6 id INT,7 username VARCHAR... 阅读全文

posted @ 2014-12-05 20:26 luckygxf 阅读(407) 评论(0) 推荐(0) 编辑

2014年12月4日

Word Ladder

摘要: Word LadderGiven two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one let... 阅读全文

posted @ 2014-12-04 21:15 luckygxf 阅读(254) 评论(0) 推荐(0) 编辑

Hello BaiduMap

摘要: 百度提供了地图的API,可以在android手机上用,这里其实只要参考百度给的文档就好了。因为api不断在更新,所以网上的博客感觉还是不太好,直接看官网的文档比较靠谱这里照着百度文档上面提供的文档我也copy一下,简单说一下步骤1.去百度下载百度地图api的jar包,和一个.so的文档http://... 阅读全文

posted @ 2014-12-04 17:09 luckygxf 阅读(283) 评论(0) 推荐(0) 编辑

2014年11月26日

Remove Duplicates from Sorted List II

摘要: Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the or... 阅读全文

posted @ 2014-11-26 19:09 luckygxf 阅读(143) 评论(0) 推荐(0) 编辑

2014年11月25日

Single Number II

摘要: Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin... 阅读全文

posted @ 2014-11-25 15:31 luckygxf 阅读(129) 评论(0) 推荐(0) 编辑

Add Two Numbers

摘要: Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co... 阅读全文

posted @ 2014-11-25 12:03 luckygxf 阅读(133) 评论(0) 推荐(0) 编辑

2014年11月24日

Insertion Sort List

摘要: Insertion Sort ListSort a linked list using insertion sort.这道题用两个链表做的,这样方便一点。还有新链表头结点我没有存放内容,这样也比较方便,后面返回head1.next就好了 1 /** 2 * Definition for singl... 阅读全文

posted @ 2014-11-24 23:02 luckygxf 阅读(157) 评论(0) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 46 下一页

导航