#

Title

Solution

Time

Space

Difficulty

Note

881

Boats to Save People

Python

O(nlog(n))

O(1)

Medium

Sort, Two Pointers, Array, Greedy

487

Max Consecutive Ones II

Python

O(n)

O(1)

Medium

Premium, Array

78

Subsets

Python

O(2^n)

O(1)

Medium

Backtracking, Arrays

1037

Valid Boomerang

Python

O(n)

O(1)

Easy

Arrays

977

Squares of a Sorted Array

Python

O(n)

O(1)

Easy

Two Pointers

448

Find All Numbers Disappeared in an Array

Python

O(n)

O(1)

Easy

Array

414

Third Maximum Number

Python

O(n)

O(1)

Easy

Array

27

Remove Element

Python

O(n)

O(1)

Easy

Array

905

Sort Array By Parity

Python

O(n)

O(1)

Easy

Array

283

Move Zeroes

Python

O(n)

O(1)

Easy

Two Pointers

26

Remove Duplicates from Sorted Array

Python

O(n)

O(1)

Easy

Two Pointers, Array

941

Valid Mountain Array

Python

O(n)

O(1)

Easy

Array

88

Merge Sorted Array

Python

O(n)

O(1)

Easy

Sort

1089

Duplicate Zeros

Python

O(n)

O(1)

Easy

Array

485

Max Consecutive Ones

Python

O(n)

O(1)

Easy

Array

#487) Given a binary array nums, return the maximum number of consecutive 1's in the array if you can flip at most one 0.