自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 leetcode算法——237. Delete Node in a Linked List(基于JAVA)

原题:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with

2016-09-06 15:50:51 362

原创 leetcode算法——389. Find the Difference(基于JAVA)

Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was ad

2016-09-06 11:48:56 2084

原创 leetcode算法——136. Single Number(基于JAVA)

Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using extra

2016-09-04 10:58:44 482

转载 常用默认端口号

⑴. HTTP协议代理服务器常用端口号:80/8080/3128/8081/9080⑵. SOCKS代理协议服务器常用端口号:1080⑶. FTP(文件传输)协议代理服务器常用端口号:21⑷. Telnet(远程登录)协议代理服务器常用端口:23HTTP服务器,默认的端口号为80/tcp(木马Executor开放此端口);HTTPS(securely transferrin

2016-09-02 16:11:36 674

转载 spring bean setter属性注入

我们可以方便的通过构造函数来注入spring bean,也可以通过setter属性来做spring bean的注入。注入简单类型的属性一个简单的示例,我们给Person类定义age和name两个属性,然后在spring配置文件中通过属性注入值。Person类的定义如下:package cn.outofmemory.spring;public class Person { pr

2016-09-01 10:56:53 464

原创 leetcode算法——258:Add Digits(基于JAVA)

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one

2016-08-10 23:15:26 391

转载 Java文件操作(File类)

Java文件操作我个人认为重要的问题有:   a:如何跨平台问题   b:文件编码问题,尤其是多语言平台情况下如何正常工作。   c:文件读写效率、操作效率   d:文件加密和文件安全   e:文件快速检索,强烈建议使用lence进行文件检索及文件管理。 以下是本人做的一些整理: 一:建立文件    File file1 = new File ("C

2016-08-06 16:57:15 352

空空如也

空空如也

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

TA关注的人

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