我们先切换到系统根目录 / 看看根目录下有哪些目录 [root@localhost ~]# cd / [root@localhost /]# ls bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin ...
分类:
其他好文 时间:
2017-07-04 00:02:11
阅读次数:
220
1.UserInfo对象类 2.Xml方式序列化和反序列化 3.Binary方式序列化和反序列化 ...
分类:
其他好文 时间:
2017-07-03 23:49:13
阅读次数:
230
题意:给定n个数,要求修改其中最少的数,使得这n个数满足ai?+?1?-?ai?=?k。 分析: 暴力,1000*1000。 1、这n个数,就是一个首项为a1,公差为k的等差数列。k已知,如果确定了a1,就能确定整个数列。 2、1?≤?ai?≤?1000,因此,可以从1~1000中枚举a1,将形成的 ...
分类:
其他好文 时间:
2017-07-03 23:45:42
阅读次数:
281
在写selenium的时候,发现很简单的case也报错 org.openqa.selenium.WebDriverException: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{ ...
分类:
其他好文 时间:
2017-07-03 21:03:50
阅读次数:
197
理由: 因为long类型是 System.Int64 (长整型,占 8 字节,表示 64 位整数,范围大约 -(10 的 19) 次方 到 10 的 19 次方) 而long BinaryReader.ReadInt64()方法是从当前流中读取八字节有符号整数,并使流的当前位置向前移动8个字节。 八 ...
翻译 给定一个二叉树。返回按层级顺序遍历的每一个节点的值。 从左到右,逐层遍历。 比如: 给定一个二叉树 {3,9,20,#,#,15,7}, 3 / \ 9 20 / \ 15 7 返回它的层级顺序遍历结果为: [ [3], [9,20], [15,7] ] 翻译 Given a binary t ...
分类:
其他好文 时间:
2017-07-03 13:57:11
阅读次数:
233
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,3,2]. /** * Defi ...
分类:
其他好文 时间:
2017-07-03 13:53:11
阅读次数:
152
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 思路:此题的意思是给一个为0或1的矩阵,求所有为1组成的最大矩阵 ...
分类:
其他好文 时间:
2017-07-03 13:52:32
阅读次数:
105
Reverse bits of a given 32 bits unsigned integer. 将uint数据依照二进制位倒序 For example, given input 43261596 (represented in binary as 000000101001010000011110 ...
分类:
其他好文 时间:
2017-07-03 12:15:44
阅读次数:
146
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 题目标签:Tree 这道题目给了我们一个有序数组,从小到大。让我们把这个数组转化为height bala ...
分类:
编程语言 时间:
2017-07-03 10:13:29
阅读次数:
185