2016年4月10日

104. Maximum Depth of Binary Tree

摘要: 104. Maximum Depth of Binary Tree Total Accepted: 136537 Total Submissions: 286367 Difficulty: Easy Given a binary tree, find its maximum depth. The m 阅读全文

posted @ 2016-04-10 11:31 Alex0111 阅读(158) 评论(0) 推荐(0)

258. Add Digits

摘要: 258. Add Digits Total Accepted: 85971 Total Submissions: 177841 Difficulty: Easy Given a non-negative integer num, repeatedly add all its digits until 阅读全文

posted @ 2016-04-10 11:20 Alex0111 阅读(136) 评论(0) 推荐(0)

136. Single Number

摘要: 136. Single Number Total Accepted: 123186 Total Submissions: 249218 Difficulty: Medium Given an array of integers, every element appears twice except 阅读全文

posted @ 2016-04-10 11:12 Alex0111 阅读(203) 评论(0) 推荐(0)

2016年4月9日

PANIC: HOME is defined but could not find Nexus_4_API_22.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd)

摘要: sudo cp /root/.android/avd/*.ini $Home/.android/avd/ sudo cp -r /root/.android/avd/*.avd $Home/.android/avd/ 阅读全文

posted @ 2016-04-09 14:31 Alex0111 阅读(2659) 评论(0) 推荐(0)

su的使用与退出

摘要: 偶尔用回到ubuntu系统,想切换到su,总是显示不成功,也许是初次使用,即需要设定一下: 使用sudo $:sudo passwd 系统提示输入密码,即安装时的用户密码,然后,系统提示输入两次新密码,输入完毕后, $:su 即可进入su,具备了相应的权限了 exit退出当前身份 阅读全文

posted @ 2016-04-09 13:38 Alex0111 阅读(3236) 评论(0) 推荐(0)

2016年4月8日

338. Counting Bits

摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文

posted @ 2016-04-08 15:55 Alex0111 阅读(169) 评论(0) 推荐(0)

c语言学习笔记

摘要: char ,short在进行计算的时候,会自动转成int型。 另外,sizeof()返回的是无符号数。 阅读全文

posted @ 2016-04-08 15:14 Alex0111 阅读(193) 评论(0) 推荐(0)

2016年3月31日

Linux命令

摘要: 原创作者:quietheart 一、文件管理: 1.创建名字为1的目录:mkdir 1 2.创建名字为1的文件:touch 1 3.删除名字为1的文件:rm 1 4.查看文件1的内容:cat 1 5.rmdir dirname 删除一个空目录dirname 6.强制删除目录:rm -f (rm -r 阅读全文

posted @ 2016-03-31 21:47 Alex0111 阅读(820) 评论(0) 推荐(0)

vimrc

摘要: set nusyntax onset foldenable " 允许折叠 set foldmethod=manual " 手动折叠 "C,C++ 按F5编译运行map <F5> :call CompileRunGcc()<CR>func! CompileRunGcc() exec "w" if &f 阅读全文

posted @ 2016-03-31 20:42 Alex0111 阅读(204) 评论(0) 推荐(0)

sougoupinyin for linux 安装步骤(精简版)

摘要: download deb double-click to install select fcitx reboot click it in the bar and choose the"text entry setting"(Sougou pinyin is in the last line) reb 阅读全文

posted @ 2016-03-31 17:58 Alex0111 阅读(538) 评论(0) 推荐(0)

导航