Roman to IntegerInteger to
Roman这两题纯粹是模拟题,关键就是理解罗马计数,直接上代码吧class Solution {public: int romanToInt(string s)
{ int result = 0; for (...
分类:
其他好文 时间:
2014-05-09 09:46:36
阅读次数:
298
基本C/C++、STL(vector、set、map、queue、string、algorithm)枚举、贪心、递归、分治、递推、模拟构造、位运算、常数优化数据结构队列、堆、栈、链表排序(插入、冒泡、快速、归并、堆、桶、基数)二分查找、散列表、并查集、哈夫曼树排序二叉树、左偏树、平衡树(Splay/...
分类:
其他好文 时间:
2014-05-09 08:10:36
阅读次数:
338
使用IO模拟器,应用沙盒的根路径为:/Users/apple/Library/Application Support/iPhone
Simulator/6.0/Applications(6.0为模拟器的版本)1、获取应用沙盒目录 利用沙盒根目录拼接“Documents”字符串
NSString * ...
分类:
移动开发 时间:
2014-05-09 07:31:58
阅读次数:
416
Problem Description
在一个有12行12列的方形的武林世界里,少林、武当和峨嵋三派的弟子们在为独霸武林而互相厮杀。武林世界的第一行的一列格子的坐标是(1, 1),第一行第二列坐标是(1, 2)……右下角的坐标为(12, 12)。如图:
少林派弟子总是在同一列回不停地行走。先往下走,走到头不能再走时就往上走,再到头则又往下走……比如,(1, 1) -> (2, 1) -...
分类:
其他好文 时间:
2014-05-09 06:27:28
阅读次数:
379
题目如下:
Problem D: ShellSort
He made each turtle stand on another one's back
And he piled them all up in a nine-turtle stack.
And then Yertle climbed up. He sat down on the pile.
What a wonderful v...
分类:
其他好文 时间:
2014-05-09 06:20:44
阅读次数:
396
android编译framework架包运行报错http://blog.csdn.net/cqupt_chen/article/details/8163632最近在看frameworks里的源码,手痒了,便想改改看看效果,没想到改完后,模拟器却运行不起来了。
首先声明,我是用的android 4.0...
分类:
移动开发 时间:
2014-05-09 03:48:55
阅读次数:
521
前情回顾:每次用rm都心惊胆战,于是5月7号晚上,找资料把rm替换为mv命令,模拟成了WINDOWS下面的回收站。组里面有好几个人一起使用服务器,回收站的文件夹就设置到了每个用户起始目录下。把每个用户的.bashrc修改了一下,一时心好,想提示登录的用户现在可以找回文件:在每个用户的~/.bashr...
分类:
Windows程序 时间:
2014-05-09 03:18:07
阅读次数:
2959
本文对块设备框架进行阐述,并以一个实际例子来清楚的让大家看到块设备的框架。...
分类:
其他好文 时间:
2014-05-09 02:15:00
阅读次数:
346
java程序模拟浏览器访问Web服务器的处理过程...
分类:
编程语言 时间:
2014-05-09 01:59:03
阅读次数:
339
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Net;using System.IO;using
System.Runtime.InteropService...
分类:
Web程序 时间:
2014-05-08 23:12:06
阅读次数:
622