Algorithm Coding

Neetcode - Clone Graph

Code like someone will read it tomorrow — because they will (and it might be you). Clone Graph Given a node in a connected undirected graph, return a deep copy of the graph. Each

Neetcode - Number of Islands

Think twice, code once. Number of Islands Given a 2D grid grid where '1' represents land and '0' represents water, count and return the number of islands. An island

Neetcode - Longest Common Subsequence

Code like a scientist, test like a skeptic, and refactor like an artist. Longest Common Subsequence Given two strings text1 and text2, return the length of the longest common subsequence between the two

Neetcode - Unique Paths

Don’t fear what you don’t know — it’s your next opportunity to grow. Unique Paths There is an m x n grid where you are allowed to move either down or

Neetcode - Jump Game

Write code like you're telling a story—clear, intentional, and built to be understood. Jump Game You are given an integer array nums where each element nums[i]indicates your maximum