自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

大三狗现在才努力还不算晚吧?!

大三狗一枚,马上要面临着实习,才发现自己会的太少。遂先刷leetcode,同时把实验室的安卓项目弄好。现在努力,应该还来得及。Fighting!

  • 博客(67)
  • 资源 (4)
  • 收藏
  • 关注

原创 关于安卓截取缩略图的方法和遇到的问题

最近的一个项目,需要写到录制视频,然后截取缩略图显示的功能。在以前的写法是调用系统自带的摄像的功能,但是效果不佳。后来打算自己写一个录制视频的方法,成功了,并保存在本地路径。然而在提取缩略图的时候遇到了一系列的问题。某大神告诉我可以从数据库中读出来。但是自己的水平有些LOW,还没有研究过数据库的读写文件。于是乎网上查,找到的一个方法是MediaMetadataRetriever这个

2015-07-02 16:54:10 809 2

原创 application/vnd.android.package-archive到底是什么

在拜读组里北大研二的安卓代码的时候,读到登录前检测版本后更新的代码。发现了一个不懂的地方。 void update() { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(Environment .getExternalStorageDi

2015-05-18 10:41:00 8192 2

原创 LeetCode 28 Implement strStr() 找到字串返回位置。

题目:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.翻译:找到字符串的子串位置,并返回。如果没有则返回-1思路:通过最简单的BF遍历,如果不符合则指向下一个字符,

2015-05-07 16:54:38 1417 1

原创 LeetCode 27 Remove Element

题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new len

2015-05-07 12:39:27 1712

原创 LeetCode 26 Remove Duplicates from Sorted Array

题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in p

2015-05-07 12:26:40 1661 1

原创 LeetCode 25 Reverse Nodes in k-Group K个一组反转节点

题目:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain

2015-05-06 15:02:57 2344

原创 LeetCode24 Swap Nodes in Pairs 成对交换链表节点

题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant s

2015-05-06 13:55:14 2536 3

原创 LeetCode23 Merge k Sorted Lists 把K个有序链表连接成一个

题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.翻译:把K个有序的链表合成一个,返回。思路:这道题和昨天的Merge 2 Lists有些类似。但是k不确定,如果用每个都去遍历的话,肯定是不会通过的。So、可以想到的是归

2015-05-06 11:17:26 2503

原创 LeetCode22 Generate Parentheses 括号生成

题目:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()())", "(())()", "()(()

2015-05-05 13:24:39 2776

原创 LeetCode 21 Merge Two Sorted Lists 把两个链表有序连接

题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.翻译:把2个有序链表连接,返回一个新链表思路:很简单,就是遍历每个节点,小的话添加在

2015-05-05 10:21:26 2357

原创 LeetCode 20 Valid Parentheses 括号匹配问题

题目:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are

2015-05-05 10:12:34 2587

原创 LeetCode 19 Remove Nth Node From End of List 移除倒数第N个节点

题目:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the

2015-05-04 15:37:00 2594 1

LeetCode 19 Remove Nth Node From End of List 移除倒数第N个节点

题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second nod...

2015-05-04 15:37:00 107

原创 LeetCode 18 4sum 找出4个数,使得他们的和等于target

题目:Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note:

2015-05-04 15:05:40 2543

LeetCode 18 4sum 找出4个数,使得他们的和等于target

题目:Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of target.Note:Elements in a quadrupl...

2015-05-04 15:05:00 192

转载 Java List ArrayList用法详解

转自:http://blog.csdn.net/hutuchongaini/article/details/12945401刚才刷LeetCode的碰到的一个小细节的问题,就是List的声明问题。找了一个写的比较不错的文章,转之,学习之。List是一个接口,而ListArray是一个类。 ListArray继承并实现了List。 所以List不能被构造,但可以向上面那样

2015-05-04 11:09:05 1671

Java List ArrayList用法详解

转自:http://blog.csdn.net/hutuchongaini/article/details/12945401刚才刷LeetCode的碰到的一个小细节的问题,就是List的声明问题。找了一个写的比较不错的文章,转之,学习之。List是一个接口,而ListArray是一个类。ListArray继承并实现了List。所以List不能被构造,但可以向上面那样为L...

2015-05-04 11:09:00 139

原创 LeetCode 17 Letter Combinations of a Phone Number 数字转为字母组合

题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input

2015-05-04 10:38:46 3164

LeetCode 17 Letter Combinations of a Phone Number 数字转为字母组合

题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input...

2015-05-04 10:38:00 177

原创 LeetCode 16 3Sum Closest 找出最接近指定target的三个数的和

题目:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would hav

2015-05-04 09:26:28 2297

LeetCode 16 3Sum Closest 找出最接近指定target的三个数的和

题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exac...

2015-05-04 09:26:00 157

原创 安卓解析xml格式字符串

最近实验室的安卓app需要实现发内部邮件的功能。说白了就是简单的数据库的增删处理。但是中间的一部分有意思的就是获取收件人的列表的处理。用户在登录APP的时候,如果验证成功,服务器则把数据的联系人的所有信息发送回来到客户端。发送出来的格式是dataset,处理之后转换为xml格式的字符串发出来。当发邮件的时候 ,则会在收件人提供一个Spinner控件,然后把所有人的名字显示出来。

2015-04-30 14:03:30 2215

安卓解析xml格式字符串

最近实验室的安卓app需要实现发内部邮件的功能。说白了就是简单的数据库的增删处理。但是中间的一部分有意思的就是获取收件人的列表的处理。用户在登录APP的时候,如果验证成功,服务器则把数据的联系人的所有信息发送回来到客户端。发送出来的格式是dataset,处理之后转换为xml格式的字符串发出来。当发邮件的时候 ,则会在收件人提供一个Spinner控件,然后把所有人的名字显示出来。...

2015-04-30 14:03:00 234

原创 LeetCode 15 3Sum 找出数组里面3个数的和等于指定值。

题目:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a tripl

2015-04-23 13:17:25 4028

LeetCode 15 3Sum 找出数组里面3个数的和等于指定值。

题目:Given 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:Elements in a triplet (a,b,c) must be ...

2015-04-23 13:17:00 880

原创 LeetCode13 Roman to Integer 罗马转为数字

题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.翻译:把罗马转为数字思路:如果是单纯的一个罗马字母比较好处理,但是对于4,9这样的,应该看它下一个字符代表的数字是不是比他大,要是大的话减去当前的字符

2015-04-22 13:55:31 1984

LeetCode13 Roman to Integer 罗马转为数字

题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.翻译:把罗马转为数字思路:如果是单纯的一个罗马字母比较好处理,但是对于4,9这样的,应该看它下一个字符代表的数字是不是比他大,要是大的话减去当前的字符...

2015-04-22 13:55:00 57

原创 Leetcode 12 Integer to Roman整数变罗马

题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.翻译:给一个整数,把他转换为罗马数字输出。这道题是简单的字符转换的问题。只要了解罗马数字代表的含义即可。罗马数字里面只有 1,5,10

2015-04-22 12:56:24 1721

Leetcode 12 Integer to Roman整数变罗马

题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.翻译:给一个整数,把他转换为罗马数字输出。这道题是简单的字符转换的问题。只要了解罗马数字代表的含义即可。罗马数字里面只有 1,5,10...

2015-04-22 12:56:00 76

原创 LeetCode 11 Container With Most Water 装尽可能多的水

题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,

2015-04-22 11:11:28 2253

LeetCode 11 Container With Most Water 装尽可能多的水

题目:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis at (i,ai) and (i, 0). Find tw...

2015-04-22 11:11:00 71

转载 从头到尾彻底理解KMP(2014年8月22日版)

从头到尾彻底理解KMP转自:http://blog.csdn.net/v_july_v/article/details/7041827感觉写的不错,看起来可以看懂作者:July时间:最初写于2011年12月,2014年7月21日晚10点 全部删除重写成此文,随后的半个多月不断反复改进。1. 引言    本KMP

2015-04-21 19:58:52 2168

从头到尾彻底理解KMP(2014年8月22日版)

从头到尾彻底理解KMP转自:http://blog.csdn.net/v_july_v/article/details/7041827感觉写的不错,看起来可以看懂作者:July时间:最初写于2011年12月,2014年7月21日晚10点 全部删除重写成此文,随后的半个多月不断反复改进。1. 引言...

2015-04-21 19:58:00 129

原创 LeetCode 10 Regular Expression Matching 正则匹配

题目:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire

2015-04-21 19:08:32 3113

LeetCode 10 Regular Expression Matching 正则匹配

题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire in...

2015-04-21 19:08:00 78

原创 LeetCode 9 Palindrome Number 回文数字

题目:Determine whether an integer is a palindrome. Do this without extra space.翻译:判断一个数字是否是回文数,不要额外空间。解题思路:因为数字既然传过去了,就不会有越界的问题。每次只需要取最前面和最后面的那一位数字进行比较,相同则继续,不同则返回、首先要获取数字的位数,假设数字是12344321,一共有8位。

2015-04-20 14:55:27 3325

LeetCode 9 Palindrome Number 回文数字

题目:Determine whether an integer is a palindrome. Do this without extra space.翻译:判断一个数字是否是回文数,不要额外空间。解题思路:因为数字既然传过去了,就不会有越界的问题。每次只需要取最前面和最后面的那一位数字进行比较,相同则继续,不同则返回、首先要获取数字的位数,假设数字是12344321,一共有8位。...

2015-04-20 14:55:00 78

原创 LeetCode 8 String to Integer (atoi)

题目:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible i

2015-04-20 12:55:57 3074

LeetCode 8 String to Integer (atoi)

题目:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input...

2015-04-20 12:55:00 75

原创 Leetcode 7 Reverse Integer 反转数字

题目:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321翻译就是把一个数字反过来输出。解题思路:这道题目看起来比较简单。无非就是一个数字取个位,作为另一个高位。无非是在10的运算。代码1: public static int rever

2015-04-20 10:28:58 5995

react-native

大神写的。不错的资源

2015-11-26

msvcr71dll

msvcr71dll 缺少的话,就赶紧下一个。好用好用

2015-05-22

Zend Studio 12.5.1 x86 x64通用破解补丁+注册码

补丁使用方法:安装官方Zend Studio 12.5.1原版,关闭zend studio,然后将破解补丁com.zend.verifier_12.5.1.v20150514-2003.jar覆盖到 安装目录\plugins目录下,然后启动zend studio 12.5.1,如提示输入注册码,则选择注册码.txt文档中任意一个注册码注册即可。

2015-05-22

搜索PDF的脚本

python 自己写的脚本搜索。需要的朋友下载

2014-05-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除