题目大意:题目地址>>>>>>>>>传送门? input: output: 注意事项: S-code: 注意: 若仅后四项检测点未通过,大概率是未减去和系数为0的项(k的值),别问我为什么直到。。。。。。 ...
分类:
其他好文 时间:
2018-10-07 20:54:14
阅读次数:
144
最近在学习相关问题是,运行”./bin/hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar grep ./input ./output 'dfs[a-z.]+' “命令,出现了以下错误: 18/10/07 11:41 ...
分类:
其他好文 时间:
2018-10-07 13:01:24
阅读次数:
1435
问题 一组数如果长度至少为3,且相邻数的差都相同,则称这组数是算术的(其实就是长度大于2的等差数列)。 数组A包含N个数,如果有0 Input: [1,2,3,4] Output: 3 Explanation: [1, 2, 3], [2, 3, 4] and [1, 2, 3, 4] 思路 用dp ...
分类:
其他好文 时间:
2018-10-06 19:18:36
阅读次数:
136
Iptables 查看路由表:route –n netstat –rn 开启转发: /proc/sys/net/ipv4/ip_forward 规则链: INPUT, OUTPUT,FORWARD,PREROUTING ,POSTROUTING(路由选择后) table(功能):filter 、na ...
分类:
其他好文 时间:
2018-10-06 10:43:30
阅读次数:
195
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18] Output: 4 Explanation: T ...
分类:
其他好文 时间:
2018-10-05 23:28:00
阅读次数:
300
Given a non negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro ...
分类:
其他好文 时间:
2018-10-05 13:55:26
阅读次数:
163
A - A 这题很巧妙啊,前两天刚好做过,而且就在博客里 Little C Loves 3 I time limit per test 1 second memory limit per test 256 megabytes input standard input output standard ...
分类:
其他好文 时间:
2018-10-05 12:20:15
阅读次数:
142
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasiliy likes to rest after a hard work, ...
分类:
其他好文 时间:
2018-10-04 23:55:28
阅读次数:
197
需要删除可能存在的output目录 删除的命令是:bin/hdfs dfs -rm -r /user/luchi/output ...
分类:
编程语言 时间:
2018-10-04 23:49:06
阅读次数:
635
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2018-10-04 21:37:09
阅读次数:
131