1.如何实现字符串的反转例如:“how are you”--->“you are how”
public class InverseString {
public void swap(char[] arr,int front,int end){//将char[]反转
while(front<end){
char temp=arr[end];
arr...
分类:
编程语言 时间:
2014-11-01 19:17:22
阅读次数:
191
var add_the_handlers = function (nodes) {var helper=function (i) {return function (e) {alert(i);};}; var i; for (i = 0; i < nodes.length; i += 1...
分类:
Web程序 时间:
2014-11-01 14:44:59
阅读次数:
160
一、直接插入排序 1 class Program 2 { 3 /// 4 /// swap two number 5 /// 6 /// 7 /// 8 static void S...
分类:
编程语言 时间:
2014-10-31 15:21:27
阅读次数:
182
其实是通过js语句自己建的函数function request(strParame){ var args = new Object(); var query = location.search.substring(1); var pairs = query.split("&...
分类:
Web程序 时间:
2014-10-30 20:41:51
阅读次数:
207
现在我们假设存在3个变量:V1、V2、V3,V1变量存在3个值:A、B、C;V2变量存在2个值:D、E;V3变量存在2个值:F、G。按照组合 测试法,可以组合出3*2*2 = 12种情况,也就是可以设计出12个测试用例。如果3个变量都存在5个不同的值的话,那就可以组合出5*5*5 = 125种情.....
分类:
其他好文 时间:
2014-10-30 18:47:43
阅读次数:
232
Network SaboteurDescriptionA university network is composed of N computers. System administrators gathered information on the traffic between nodes, a...
分类:
编程语言 时间:
2014-10-30 16:43:29
阅读次数:
281
题目描述:
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.
代码:ListNode * Solution::mergeTwoLists(List...
分类:
其他好文 时间:
2014-10-30 11:44:34
阅读次数:
149
安装环境:操作系统:CentOS6.5_x64主机名:Oracle内存:2G(官方最低要求1G)硬盘:500G(企业版安装所需4.29G和1.7G数据文件)安装centos的时候要注意,swap交换分区的大小最好为物理内存的两倍,网络最好配置静态ip,还有安装时把开发工具装上,因为LinuxOracle的安装依赖于..
分类:
数据库 时间:
2014-10-30 02:07:39
阅读次数:
484
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-10-29 23:51:47
阅读次数:
266
假设有下面这段代码
local t = { a = 1, b = { x = 1, y = 2}}我传给你一个table, 想要知道这个table都有哪些字段,但是又不能直接获取,这时可以使用下面这个方法
for k, v in pairs (t) do print(tostring(k), v)e...
分类:
其他好文 时间:
2014-10-29 21:28:26
阅读次数:
329