Algorithm Coding

Neetcode - Graph Valid Tree

Simplicity is the ultimate sophistication. Graph Valid Tree Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a

Neetcode - Course Schedule

Code is communication. Course Schedule You are given an array prerequisites where prerequisites[i] = [a, b] indicates that you must take course b first if you want to take course a. The pair

Neetcode - Pacific Atlantic Water Flow

Write code that makes sense tomorrow, not just today. Pacific Atlantic Water Flow You are given a rectangular island heights where heights[r][c] represents the height above sea level of the cell