Java
T-Rainbow
欢迎来到“菜鸟”驿站!
展开
-
第六周作业1(LeetCode13)
1. 题目描述Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.2. 解决思路在解决这道题之前应该首先了解罗马的记数方式和组成规则。基本字符:I V X L C D M;相应的阿拉伯数字表示为 1 5 10 5原创 2017-03-28 22:33:59 · 211 阅读 · 0 评论 -
第六周作业2(LeetCode 12)
1. 题目描述(LeetCode 12)Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.2. 解决思路根据上次做的罗马数字转化为整数那一题,掌握了罗马数字的记数规则和基本的组数规则,因此我们可以很快地找到解题的突破口,即: 罗马数字的基原创 2017-04-09 15:23:19 · 173 阅读 · 0 评论 -
第九周作业2(LeetCode4)
1. 题目描述There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1: nums1 = [1,原创 2017-05-16 09:53:34 · 296 阅读 · 0 评论