3Sum – Java

Time O(n2) & Memory O(1)

 

Trapping Rain Water – Java

O(n) Memory and O(n) time