摘要: ## 题目 >Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their n 阅读全文
posted @ 2017-10-30 16:56 The-Mystery 阅读(213) 评论(0) 推荐(0)
摘要: 此解法用JavaScript写的,然后运行速度在leetcode上秒杀所有人,是迄今为止JavaScript上最快的解法 哈哈哈 很开心~~~ /** * @param {string} s * @return {boolean} */var isValid = function(s) { let 阅读全文
posted @ 2017-10-29 21:02 The-Mystery 阅读(501) 评论(0) 推荐(0)
摘要: 只要明白了罗马数字的基本道理,把罗马数字转为整数其实很简单,罗马数字有I V X L C D M 组成,分别代表1,5, 10, 50,100,500,1000然后这几个字母在一块组成一个数.字母组合的规则有两个:- 1.假如左边的字母代表的数比右边的字母代表的数小,那么这个字母代表的数为本来的相反 阅读全文
posted @ 2017-10-27 17:18 The-Mystery 阅读(157) 评论(0) 推荐(0)