Jan 17, 2026
You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking.
leetcodemediumarraybinary-searchdesignordered-set
Jan 17, 2026
You are given an integer array nums and you have to return a new array counts. The array counts has the property where counts[i] is the number of smaller elements...
leetcodehardarraybinary-searchdivide-and-conquerbinary-indexed-treesegment-treemerge-sort
Jan 16, 2026
You are given two integer arrays fruits and baskets.
leetcodemediumarraygreedysegment-tree
Jan 16, 2026
Given an integer array nums, handle multiple queries of the following types:
leetcodemediumarraysegment-treebinary-indexed-tree
Jan 16, 2026
You are given an empty 2D binary grid grid of size m x n. The grid represents a map where 0’s represent water and 1’s represent land. Initially, all the...
leetcodehardarrayunion-findgraph
Jan 15, 2026
There is a directed graph of n nodes with each node labeled from 0 to n - 1. The graph is represented by a 0-indexed 2D integer array graph where...
leetcodemediumgraphdfscycle-detection
Jan 15, 2026
You are given an integer array nums and you have to return a new array counts. The array counts has the property where counts[i] is the number of smaller elements...
leetcodehardarraybinary-searchdivide-and-conquerbinary-indexed-treesegment-treemerge-sort
Jan 14, 2026
LCR 113. Course Schedule II
leetcodemediumgraphtopological-sortdfs
Jan 14, 2026
A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected graph without simple cycles is a tree.
leetcodemediumgraphtreetopological-sortbfs
Jan 14, 2026
There is a new alien language that uses the English alphabet. However, the order among the letters is unknown to you.
leetcodehardgraphtopological-sortstring