Mar 18, 2026
Given a binary tree, a node X is good if there is no node with a value greater than X...
leetcodemediumtreedfsbfs
Mar 17, 2026
A company has n employees numbered 0 to n-1. Each employee has exactly one direct manager given in manager[i], except...
leetcodemediumtreedfsbfs
Mar 16, 2026
You are given a 2D array intervals where intervals[i] = [left_i, right_i] represents the inclusive interval [left_i, right_i]. Divide the...
leetcodemediumgreedyheapintervals
Mar 15, 2026
A gene string is represented by an 8-character string of 'A', 'C', 'G', and 'T'. Given startGene, endGene, and a...
leetcodemediumbfsstring
Mar 12, 2026
There are n rooms labeled 0 to n-1. All rooms are locked except room 0. Each room contains a set...
leetcodemediumgraphdfsbfs
Mar 11, 2026
Given an n x n binary matrix grid, return the length of the shortest clear path from top-left (0,0) to...
leetcodemediumgraphbfs