题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Yo...
分类:
其他好文 时间:
2015-07-05 14:50:49
阅读次数:
104
Java冷知识 1、Number的Class类不是Integer的Class的父类 2、final的静态的变量第一次访问会是类进行初始化,而fianl的静态常量访问不会使类初始化 3、通过Class.forName("oo.oo.A")得到的Class应用会使该类初始化...
分类:
编程语言 时间:
2015-07-05 13:50:49
阅读次数:
121
一、工作管理
1、&:直接将命令丢到后台中执行
Eg: tar -jcv -f infor/t.tar.bz2 infor/test1 & (将test1压缩)
2、[ctrl] -z :将目前的工作丢到后台中暂停
3、jobs:查看目前后台工作状态 jobs [-lsr]
-l:除了列出job number与命令串外,还列出PID的号码
-s:仅列...
分类:
系统相关 时间:
2015-07-05 12:32:12
阅读次数:
218
描述
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
(Figure 1)
Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top and ends some...
分类:
其他好文 时间:
2015-07-05 12:26:39
阅读次数:
92
struct?stat?{
???????mode_t????st_mode;??????/*?file?type?&?mode?(permissions)?*/
???????ino_t?????st_ino;???????/*?i-node?number?(serial?number)?*...
分类:
其他好文 时间:
2015-07-05 11:12:46
阅读次数:
145
一、工作管理
1、&:直接将命令丢到后台中执行
Eg: tar -jcv -f infor/t.tar.bz2 infor/test1 & (将test1压缩)
2、[ctrl] -z :将目前的工作丢到后台中暂停
3、jobs:查看目前后台工作状态 jobs [-lsr]
-l:除了列出job number与命令串外,还列出PID的号码
-s:仅列...
分类:
系统相关 时间:
2015-07-05 09:39:34
阅读次数:
160
Where is Vasya?Vasya stands in line with number of peoplep (including Vasya), but he doesn't know exactly which position he occupies. He can say that ...
分类:
其他好文 时间:
2015-07-05 07:06:36
阅读次数:
255
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 fo...
分类:
其他好文 时间:
2015-07-04 18:06:34
阅读次数:
86
//ping测试检测局域网在线主机与不在线主机,并分别将它们打印出来//并统计它们的数量#!/bin/bash#//声明网络地址host_pre="192.168.0"//声明在线主机数量declare-iactive_sum=0//声明不在线主机数量declare-iunactive_sum=0//for循环执行ping主机测试foriin{1..254};doifping-..
分类:
其他好文 时间:
2015-07-04 16:52:47
阅读次数:
139
题目出处:https://leetcode.com/problems/palindrome-number/
题目:Determine whether an integer is a palindrome. Do this without extra space.
翻译:判断一个整型数是否是回文数
思路:将整型数转化为字符串,依次比较首尾
代码:
public class Solution...
分类:
其他好文 时间:
2015-07-04 14:08:01
阅读次数:
171