[LeetCode 581] Shortest Unsorted Continuous Subarray [Java] [Runtime : 22MS]
1. Description Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the wh...
1. Description Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the wh...
1. Description Given an integer array, sort it in ascending order. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm. 2. Example I...
1. Description Partition an integers array into odd number first and even number second. 2. Submission Details 3. Code [restabs alignment="osc-tab...
1. Description Write a method to replace all spaces in a string with %20. The string is given in a characters array, you can assume it has enough s...
1. Description Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in eac...
1. Runtime Distribution 2. Submission Details 3. Description Given an array of integers, find if the array contains any duplicates. Your function...
1. Runtime Distribution 2. Submission Details 3. Description Design a data structure that supports all following operations in average O(1) time....
1. Runtime Distribution 2. Submission Details 3. Description Given a set of non-overlapping intervals, insert a new interval into the intervals (...
1. Runtime Distribution 2. Submission Details 3. Description Given n non-negative integers representing an elevation map where the width of each ...
1. Runtime Distribution 2. Submission Details 3. Description Given an unsorted integer array, find the first missing positive integer. Your algor...