摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ... 阅读全文
posted @ 2015-04-03 17:04 雄哼哼 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 原文链接# echo "abcd"|tr 'a' 'b'bbcdtr 命令用途转换字符。语法tr[-c|-cds|-cs|-C|-Cds|-Cs|-ds|-s] [-A]String1String2tr{-cd|-cs|-Cd|-Cs|-d|-s} [-A]String1描述tr命令从标准输入删除或... 阅读全文
posted @ 2015-04-03 11:15 雄哼哼 阅读(737) 评论(0) 推荐(0) 编辑
摘要: Write a bash script to calculate the frequency of each word in a text filewords.txt.For simplicity sake, you may assume:words.txtcontains only lowerca... 阅读全文
posted @ 2015-04-03 11:14 雄哼哼 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 思路:代码:class Solution {public: int rob(vector &num) { if(num.empty()) return 0; int size=num.size(); if(size==1) return num[0];... 阅读全文
posted @ 2015-04-03 10:44 雄哼哼 阅读(265) 评论(0) 推荐(0) 编辑