Open in TheBrain

O(n) Linear Space