导航

2016年4月5日

摘要: // 11_33.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #include #include using namespace std; //用map文件来建立一个要转换的字符串对应的转换成的字符串 map buildMap(ifstream &map_file) { map ma; ... 阅读全文

posted @ 2016-04-05 18:21 CSU蛋李 阅读(201) 评论(0) 推荐(0) 编辑

摘要: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur 阅读全文

posted @ 2016-04-05 03:06 CSU蛋李 阅读(143) 评论(0) 推荐(0) 编辑

摘要: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文

posted @ 2016-04-05 02:22 CSU蛋李 阅读(77) 评论(0) 推荐(0) 编辑

摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文

posted @ 2016-04-05 02:12 CSU蛋李 阅读(133) 评论(0) 推荐(0) 编辑