
LeetCode
文章平均质量分 92
Touchig
这个作者很懒,什么都没留下…
展开
-
LeetCode Problem 324: Wiggle Sort Ⅱ
问题描述原题链接 Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]….Example: (1) Given nums = [1, 5, 1, 1, 6, 4], one possible answer is [1, 4, 1, 5, 1, 6]. (2) Given原创 2017-09-24 19:57:01 · 353 阅读 · 0 评论 -
LeetCode Problem 43: Multiply Strings
问题描述Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note: The length of both num1 and num2 is < 110. Both num1 and num2 contains only digits原创 2017-09-17 22:39:12 · 381 阅读 · 0 评论 -
LeetCode Problem 424: Longest-Repeating-Character-Replacement
LeetCode Problem 424: Longest-Repeating-Character-Replacement问题描述Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k t原创 2017-09-11 23:21:04 · 316 阅读 · 1 评论 -
LeetCode问题53:最大的连续子数组和
问题描述Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the contiguous subarray [4,-1,2,1...原创 2018-03-09 21:30:35 · 455 阅读 · 0 评论 -
LeetCode 1036. Escape a Large Maze
一种重新映射坐标,收缩空间的解法原题链接:Escape a Large Maze参考自 @qb_2008 发布于讨论区的帖子代码:class Solution { void gen_map(map<int, int>& a, int x) { if (x > 0) a[x-1] = 0; a[x] = 0; ...原创 2019-09-11 11:01:11 · 227 阅读 · 0 评论