tree命令以树状图列出文件目录结构。不过某些Linux上(Centos 6.4)没有tree命令,本文将介绍安装方法。常用参数:tree -d 只显示目录。tree -L 1 只显示第一层目录。[root@localhost tree-1.7.0]# tree-bash: tree: comman...
分类:
系统相关 时间:
2014-07-22 22:48:14
阅读次数:
347
Android Studio 快捷键 转至 http://www.android-studio.org/index.php/docs/experience/142-androidstudio-shortcut-keysAlt+回车 导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查.....
分类:
移动开发 时间:
2014-07-22 22:46:13
阅读次数:
227
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-07-22 00:12:36
阅读次数:
156
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-07-22 00:09:37
阅读次数:
151
java很给力逆序用了Colletcions.reverse();/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ...
分类:
其他好文 时间:
2014-07-22 00:04:35
阅读次数:
154
1.Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2.Given a singly linked list where elements are sorted in ascending order, convert it to a heig...
分类:
其他好文 时间:
2014-07-21 23:45:53
阅读次数:
264
Multiplication Table
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
CodeForces 448D
Description
Bizon the Champion isn't just charming, he al...
分类:
其他好文 时间:
2014-07-21 23:29:23
阅读次数:
311
不容易啊。。一个小错误让我wa死了,找了一个晚上,怎么都找不到
最后是对拍代码找到的错误,发现当步数比较小的时候答案就是对的,比较大的时候就不对了
想到一定是什么地方越界了。。。
power[i] = (i64)(power[i - 1] * 26) % mod;
就是这行。。。
改成 power[i] = ((i64)power[i - 1] * 26) % mod;
就过了。。...
分类:
其他好文 时间:
2014-07-21 23:29:20
阅读次数:
369
Xtext
Xtext是eclipse下用于构建DSL的工具。其使用非常方便,除了支持开发DSL以外,还能得到eclipse语法高亮、错误提示等功能。http://www.eclipse.org/Xtext/index.html
建议先读读官方文档里面的最开始的几个tutorial,对Xtext的使用有个大概的了解。http://www.eclipse.org/Xtext/documentat...
分类:
其他好文 时间:
2014-07-21 22:45:07
阅读次数:
391
函数介绍
rindex(查找字符串中最后一个出现的指定字符) 相关函数 index,memchr,strchr,strrchr表头文件 #include定义函数 char * rindex( const char *s,int c);函数说明 rindex()用来找出参数s字符串中最后一个出现的参数c地址,然后将该字符出现的地址返回。字符串结束字符(NULL)也视为字符串一部分。返回值 如果找到...
分类:
系统相关 时间:
2014-07-21 22:37:28
阅读次数:
336