12.整型to罗马数字题目Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol ValueI 1V 5X 10L 50C 100D 500M 1000For example, two is written as II in Roman numeral, just tw...
阅读全文…
题目给定一个字符串,找出不含有重复字符的最长子串的长度。示例 1:
123456输入: s = "PAYPALISHIRING", numRows = 3输出: "PAHNAPLSIIGYIR"解释:P A H NA P L S I I GY I R
示例 2:
123456输入: s = "PAYPALISHIRING&...
阅读全文…
题目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)).You may assume nums1 and ...
阅读全文…