Wiggle Sort II Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... 注意事项 You may assume all input has valid an ...
分类:
其他好文 时间:
2016-04-02 23:00:43
阅读次数:
496
非常多时候我们使用hibernate的session时,都是让session在某一执行环境中保持其唯一。比如在同一线程内用同一个session。在同一方法内用同一session,这样我们就能够用session里面缓存好的数据。但。我想说的不是缓存,且听我一一道来。 近期试用spring3.0.2+s ...
分类:
数据库 时间:
2016-04-02 09:34:50
阅读次数:
225
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2016-04-01 12:43:25
阅读次数:
145
常见的三种Web服务架构 转自http://www.cnblogs.com/bvbook/archive/2008/12/24/1360942.html 相互竞争的服务架构 The Competing Architectures 我们已经给出了“不同Web服务会有不同做法”的两个主要问题,现在要据此 ...
分类:
Web程序 时间:
2016-03-30 14:55:18
阅读次数:
342
1.使用ipaddr查看ip地址,检查ip是否生效,一安装好redhat7的时候,默认是没有配置ip地址的[root@xc~]#ipaddr
1:lo:<LOOPBACK,UP,LOWER_UP>mtu65536qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
inet127.0.0.1/8scopehostlo
valid_lftf..
分类:
其他好文 时间:
2016-03-30 11:12:00
阅读次数:
942
0,应用背景 Rest ful api是 Fielding(楼下那叔叔) 在他的论文《Architectural Styles and the Design of Network-based Software Architectures》中提出的,论文地址:http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm。(。。。)...
Django form 流程 1、创建类,继承form.Form 2、页面根据类的对象自动创建html标签 3、提交,request.POST 封装到类的对象里,obj=UserInfo(request.POST) 4、用户输入是否合法 obj.is_valid() 5、全部合法,获取全部内容 ob ...
分类:
其他好文 时间:
2016-03-28 01:53:41
阅读次数:
1723
题目:
Given a string containing just the characters , determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}” are all valid but “(]” and “([)]” are not.翻译:...
分类:
其他好文 时间:
2016-03-24 14:49:05
阅读次数:
135
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges mak
分类:
其他好文 时间:
2016-03-23 13:09:11
阅读次数:
175
Evaluate the value of an arithmetic expression inReverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another ex
分类:
其他好文 时间:
2016-03-20 14:21:01
阅读次数:
135