摘要:
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 相比Interger to Roman,本题明显要简单一些,按照规则直接翻译就好。 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
学习javascript中遇到了这么一个问题,代码如下:var test = 'a';function test() { alert('Hello World!');}alert(test); //这句话打印出atest(); //这句话报错:缺少函数根据之前的知识函数就是对象,test开始赋值'... 阅读全文