- 博客(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 363
原创 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 2085
原创 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 483
转载 常用默认端口号
⑴. HTTP协议代理服务器常用端口号:80/8080/3128/8081/9080⑵. SOCKS代理协议服务器常用端口号:1080⑶. FTP(文件传输)协议代理服务器常用端口号:21⑷. Telnet(远程登录)协议代理服务器常用端口:23HTTP服务器,默认的端口号为80/tcp(木马Executor开放此端口);HTTPS(securely transferrin
2016-09-02 16:11:36 676
转载 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 465
原创 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 392
转载 Java文件操作(File类)
Java文件操作我个人认为重要的问题有: a:如何跨平台问题 b:文件编码问题,尤其是多语言平台情况下如何正常工作。 c:文件读写效率、操作效率 d:文件加密和文件安全 e:文件快速检索,强烈建议使用lence进行文件检索及文件管理。 以下是本人做的一些整理: 一:建立文件 File file1 = new File ("C
2016-08-06 16:57:15 352
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人