摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 相比Interger to Roman,本题明显要简单一些,按照规则直接翻译就好。 阅读全文
posted @ 2016-02-20 22:12 水果拼盘武士G 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. AC方法: class Solution(object): def intToRom 阅读全文
posted @ 2016-02-19 16:29 水果拼盘武士G 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-02-18 19:48 水果拼盘武士G 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 学习javascript中遇到了这么一个问题,代码如下:var test = 'a';function test() { alert('Hello World!');}alert(test); //这句话打印出atest(); //这句话报错:缺少函数根据之前的知识函数就是对象,test开始赋值'... 阅读全文
posted @ 2014-04-13 17:57 水果拼盘武士G 阅读(173) 评论(0) 推荐(0) 编辑