Categories
interview

3Sum – Java

Time O(n2) & Memory O(1)

 

Categories
interview

Trapping Rain Water – Java

O(n) Memory and O(n) time

 

Categories
interview

CSS Margins Collapsing

CSS Vertical Margins  of adjoining elements collapse vertically by default unless contained in a flexbox.

CSS Horizontal Margins never collapse.

Categories
interview

Frog Jump – Java

This solution uses a HashMap

Categories
Uncategorized

Sudoku Solver – Java

This solution uses DFS (Depth First Search) Algorithm and looks for a unique solution to the given Sudoku Puzzle.