Leetcode题目详解
文章平均质量分 84
Yang_Zhiqi
这个作者很懒,什么都没留下…
展开
-
Q4 Median of Two Sorted Arrays 两个有序数组的中位数
题目: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 = [原创 2018-01-25 15:23:52 · 241 阅读 · 0 评论 -
Q6. ZigZag Conversion "之字形"转化字符串
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I原创 2018-01-25 19:56:53 · 419 阅读 · 0 评论