Sorting

Leetcode 26 Remove Duplicates from Sorted Array Java Solution

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra…

2 years ago

Leetcode 56 Merge Intervals (Java)

Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] and…

2 years ago

This website uses cookies.