摘要:
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 思路分析: 1、熟悉罗马数字的规则。见LeetCode之Easy篇 ——(12)In 阅读全文
摘要:
break、continue的相关规则如下,while和for同样适用: (1)一般的continue会退回最内层循环的开头(顶部),并继续执行 (2)带标签的continue会到达标签的位置,并重新进入紧接在哪个标签后面的循环 (3)一般的break会中断并跳出当前循环 (4)带标签的break会 阅读全文