安装配置hosts配置: 用户: useradd spark1、SSH无密码登录2、JDK3、安装Scala 2.10.44、安装配置Spark4.1、解压与权限 chown -R spark:spark /opt/spark4.2、配置workervi conf/slavesES122ES123E...
分类:
其他好文 时间:
2014-09-12 11:35:33
阅读次数:
197
在linux中,svn co 或 svn up 时有中文文件名的文件的话,可能会报下面的错:[root@linkea-dev-srv1 ~]# svn upsvn: Can't convert string from 'UTF-8' to native encoding:svn: src/main/...
分类:
其他好文 时间:
2014-09-12 11:30:03
阅读次数:
190
如果U盘格式为FAT32,拷贝单个文件不能超过2G;如果U盘格式为NTFS,拷贝单个文件不作限制。怎么转换呢?windows系统,打开命令行窗口,输入指令CONVERT K:/FS:NTFS(K就是你U盘再windows识别的盘符)详细如下:
分类:
其他好文 时间:
2014-09-12 10:02:33
阅读次数:
160
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 罗马数字有如下符号:罗马字符: I V X L C D M对应数字...
分类:
其他好文 时间:
2014-09-11 22:07:42
阅读次数:
271
Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below a...
分类:
其他好文 时间:
2014-09-10 19:17:40
阅读次数:
270
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-09-09 15:09:08
阅读次数:
256
我觉着写得比看到的答案更清晰~
class Solution {
public:
TreeNode *ltob(ListNode *head, ListNode *end) {
if(head == end) {
TreeNode * node = new TreeNode(head->val);
return node;...
分类:
其他好文 时间:
2014-09-09 12:56:58
阅读次数:
166
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.难度70,与Convert Sorted Array to Binary Sear...
分类:
其他好文 时间:
2014-09-08 06:26:16
阅读次数:
263
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路: 1 class Solution { 2 public: 3 strin...
分类:
其他好文 时间:
2014-09-07 17:13:15
阅读次数:
199
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:从后往前遍历,如果某个数比其后一个数小,则减去该数;否则,加上该数。因为只存在Ⅳ(...
分类:
其他好文 时间:
2014-09-07 15:58:25
阅读次数:
242