随笔分类 -  array(谁小移谁)

11. Container With Most Water
摘要:The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 阅读全文

posted @ 2018-08-28 21:24 猪猪🐷

350. Intersection of Two Arrays II
摘要:Note: Each element in the result should appear as many times as it shows in both arrays. The result can be in any order. Follow up: What if the given 阅读全文

posted @ 2018-07-18 08:51 猪猪🐷

349. Intersection of Two Arrays
摘要:https://leetcode.com/problems/intersection-of-two-arrays/discuss/81969/Three-Java-Solutions Given two arrays, write a function to compute their inters 阅读全文

posted @ 2018-07-18 08:50 猪猪🐷

88. Merge Sorted Array
摘要:Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and num 阅读全文

posted @ 2018-07-18 08:49 猪猪🐷

导航