Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-10-18 20:57:37
阅读次数:
229
1. 代码法:显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool f...
分类:
系统相关 时间:
2014-10-18 20:54:43
阅读次数:
188
相信下面這個C程序很多人都見過啦,當時自己看 美少女战士谭浩强 写的那本书上的解释,反正我当时是没看太懂具体是什么意思,谱架啊~~~
#include
void swap(int x, int y)
{
int temp = x;
x = y;
y = temp;
}
int main()
{
int n, m;
while(~scanf("%d %...
分类:
其他好文 时间:
2014-10-18 19:45:57
阅读次数:
167
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-10-18 19:43:01
阅读次数:
179
测试jdk:1.6安装完jdk1.6以后,在我的电脑中找到环境变量配置在系统变量的Path 中输入 ;E:\Program Files (x86)\Java\jdk1.6.0_01\bin(路径根据自己安装的目录变化,注意,分号加在前面的话,光标要移到path变量值得最后,分号在后(E:\Progr...
分类:
编程语言 时间:
2014-10-18 18:16:47
阅读次数:
175
我设置文件夹权限时,不小心把./* 写成了/*然后就登录不进去了,出现_secure_path: /etc/login.conf is world writable login_getclass: unknown class 'root'第一种、启动盘启动到启动盘环境,挂载上分区修改回来就可以了单用...
分类:
其他好文 时间:
2014-10-18 18:16:05
阅读次数:
309
1 adb 发送广播
adb shell am broadcast -a com.android.launcher4.launcherReceiver --es path "/mnt/sdcard/xx.apk" --ei action 1 --ei versionCode 21...
分类:
数据库 时间:
2014-10-18 15:33:47
阅读次数:
176
TCHAR path[MAX_PATH]; //存放路径的变量ZeroMemory(path, 255);GetCurrentDirectory(MAX_PATH, path); //获取程序的当前目录
分类:
其他好文 时间:
2014-10-18 15:26:53
阅读次数:
130
Xp:PostMessage(hwnd, WM_COMMAND, 41504, NULL);Win7:SHChangeNotify(SHCNE_UPDATEDIR , SHCNF_PATH | SHCNF_FLUSHNOWAIT, folderPath.utf16(), NULL);
求二叉树的镜像:
void MirrorBiTree(BiTree* pNode)
{
if(pNode == NULL||pNode->leftChild ==NULL || pNode->rightChild ==NULL)
return ;
ListNode* temp;
temp = pNode->leftChild;
...
分类:
其他好文 时间:
2014-10-18 14:03:32
阅读次数:
170