自定义博客皮肤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!

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

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

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

2015-04-30 14:03:30 2231

安卓解析xml格式字符串

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

2015-04-30 14:03:00 257

原创 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 4071

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 900

原创 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 1997

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 65

原创 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 1731

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 82

原创 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 2273

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 82

转载 从头到尾彻底理解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 2176

从头到尾彻底理解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 143

原创 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 3122

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 86

原创 LeetCode 9 Palindrome Number 回文数字

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

2015-04-20 14:55:27 3337

LeetCode 9 Palindrome Number 回文数字

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

2015-04-20 14:55:00 87

原创 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 3091

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 80

原创 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 6012

Leetcode 7 Reverse Integer 反转数字

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

2015-04-20 10:28:00 164

原创 leetcode 6 ZigZag Conversion

题目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P

2015-04-17 13:18:20 3268

leetcode 6 ZigZag Conversion

题目:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L...

2015-04-17 13:18:00 65

转载 LeetCode:Longest Palindromic Substring 最长回文子串

忽然找到一位关于此题详细介绍的大牛文章。转载之,以后常回顾一下。http://www.cnblogs.com/tenosdoit/p/3675788.html表示没学过动态规划,闲下来时候研究研究。算法4挺别出心裁,值得学习!题目链接Given a string S, find the longest palindromic substring in

2015-04-17 10:46:57 2239

LeetCode:Longest Palindromic Substring 最长回文子串

忽然找到一位关于此题详细介绍的大牛文章。转载之,以后常回顾一下。http://www.cnblogs.com/tenosdoit/p/3675788.html表示没学过动态规划,闲下来时候研究研究。算法4挺别出心裁,值得学习!题目链接Given a stringS, find the longest palindromic substring inS. Yo...

2015-04-17 10:46:00 84

原创 LeetCode 5 Longest Palindromic Substring

题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.翻译:求字符串的最长回文子串

2015-04-17 10:37:27 3843

LeetCode 5 Longest Palindromic Substring

题目:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest palindromic substring.翻译:求字符串的最长回文子串思路:...

2015-04-17 10:37:00 75

原创 git配置的时候出现connect to host github.com port 22 bad file number解决办法

刚才偶然看见某前辈在github搭建了自己的blog。觉得有些炫酷,顿时想搞一个试试。想想自己许些日子前注册 过的github的帐号,但是却一份都代码都没传过,只是fork了别人的代码学习学习。惭愧惭愧。于是在实验室的电脑配置msysgit,打算开始github之路结果遇到了问题。遂google一下。找到了一个不错的解决办法、http://stackoverflow.com

2015-04-16 15:04:18 4545

git配置的时候出现connect to host github.com port 22 bad file number解决办法

刚才偶然看见某前辈在github搭建了自己的blog。觉得有些炫酷,顿时想搞一个试试。想想自己许些日子前注册 过的github的帐号,但是却一份都代码都没传过,只是fork了别人的代码学习学习。惭愧惭愧。于是在实验室的电脑配置msysgit,打算开始github之路结果遇到了问题。遂google一下。找到了一个不错的解决办法、http://stackoverflow.com...

2015-04-16 15:04:00 278

原创 leetcode 4 Median of Two Sorted Arrays

题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).看到题目,首先想到的是 把2个数组合并成一个,然后在去中间位

2015-04-16 13:52:53 3420

leetcode 4 Median of Two Sorted Arrays

题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).看到题目,首先想到的是 把2个数组合并成一个,然后在去中间位...

2015-04-16 13:52:00 71

原创 LeetCode 3 Longest substring without Repeating A

题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is

2015-04-15 17:06:02 2804

LeetCode 3 Longest substring without Repeating A

题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is ...

2015-04-15 17:06:00 73

原创 LeetCode 开刷2 ADD Two Numbers

趁着还有热情,接着刷。题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers

2015-04-15 14:00:40 3304

LeetCode 开刷2 ADD Two Numbers

趁着还有热情,接着刷。题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers...

2015-04-15 14:00:00 66

原创 LeetCode开刷,1.Two Sum Java

大学学了一堆理论,编码水平渣。果然应该刷刷题了。正好最近看java ,试着就java写一写。水平略渣。。题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum shou

2015-04-15 13:20:46 4291

LeetCode开刷,1.Two Sum Java

大学学了一堆理论,编码水平渣。果然应该刷刷题了。正好最近看java ,试着就java写一写。水平略渣。。题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum shou...

2015-04-15 13:20:00 55

原创 android GridView设置边框教程。

最近这个项目要求读取新闻,或者审批投递。显示却要像网页一样。说白了就是左侧的标题和右侧的内容一一对应的gridview的格式显示。安卓才看了10多天而已。苦苦折磨,没有做出一个好效果。后来想想,是不是可以用和C#一样的girdview来显示。但是手机不能像电脑一样设置明显的边框。找了一些解决方案,不是十分满意。最后有了一个自我感觉可以的办法。效果图:

2015-04-08 14:55:59 5579

android GridView设置边框教程。

最近这个项目要求读取新闻,或者审批投递。显示却要像网页一样。说白了就是左侧的标题和右侧的内容一一对应的gridview的格式显示。安卓才看了10多天而已。苦苦折磨,没有做出一个好效果。后来想想,是不是可以用和C#一样的girdview来显示。但是手机不能像电脑一样设置明显的边框。找了一些解决方案,不是十分满意。最后有了一个自我感觉可以的办法。效果图:原理...

2015-04-08 14:55:00 431

原创 配置IIS服务器的时候,出现System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "ERP"。登录失败。

今天把写好的网站部署到本地的IIS服务器上。出现了System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "ERP"。登录失败  的错误百度一下解决方法,发现好多人都遇到了这样的错误。但是大部分的解决方法都是不好使。如上图的错误。最后终于在某学长的帮助下找到了解决方法。具体方法如下:1.打开数据库企业管

2015-04-06 13:12:55 11417 4

配置IIS服务器的时候,出现System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "ERP"。登录失败。...

今天把写好的网站部署到本地的IIS服务器上。出现了System.Data.SqlClient.SqlException: 无法打开登录所请求的数据库 "ERP"。登录失败 的错误百度一下解决方法,发现好多人都遇到了这样的错误。但是大部分的解决方法都是不好使。如上图的错误。最后终于在某学长的帮助下找到了解决方法。具体方法如下:1.打开数据库企业管理器,然后选择数据...

2015-04-06 13:12:00 1286

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关注的人

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