226. Invert Binary Tree Problem Given the root of a binary tree, invert the tree, and return its root. https://leetcode.com/problems/invert-binary-tr... 2024-11-23 easy
98. Validate Binary Search Tree Problem Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as follo... 2024-11-23 medium
347. Top K Frequent Elements Problem Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any o... 2024-11-23 medium
91. Decode Ways Problem You have intercepted a secret message encoded as a string of numbers. The message is decoded via the following mappin... 2024-11-23 medium
217. Contains Duplicate Problem Given an integer array nums, return true if any value appears at least twice in the array, and return false if every ... 2024-11-23 easy
213. House Robber II Problem You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed... 2024-11-23 medium
3238. Find the Number of Winning Players Problem You are given an integer n representing the number of players in a game and a 2D array pick where pick[i] = [xᵢ, yᵢ] ... 2024-11-23 easy
212. Word Search II Problem Given an m x n board of characters and a list of strings words, return all words on the board. Each word must be... 2024-11-23 hard
211. Design Add and Search Words Data Structure Problem Design a data structure that supports adding new words and finding if a string matches any previously added string. I... 2024-11-22 medium
338. Counting Bits Problem Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the numbe... 2024-11-22 easy
208. Implement Trie (Prefix Tree) Problem A trie (pronounced as “try”) or prefix tree is a tree data structure used to efficiently store and retrieve keys in a... 2024-11-22 medium
207. Course Schedule Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array pr... 2024-11-22 medium
3233. Find the Count of Numbers Which Are Not Special Problem You are given 2 positive integers l and r. For any number x, all positive divisors of x except x are called the prope... 2024-11-22 medium
79. Word Search Problem Given an m x n grid of characters board and a string word, return true if word exists in the grid. The word can be co... 2024-11-21 medium
206. Reverse Linked List Problem Given the head of a singly linked list, reverse the list, and return the reversed list. https://leetcode.com/problems... 2024-11-21 easy
76. Minimum Window Substring Problem Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every c... 2024-11-21 hard
73. Set Matrix Zeroes Problem Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0’s. You must do it in pla... 2024-11-21 medium
200. Number of Islands Problem Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islan... 2024-11-21 medium
3248. Snake in Matrix Problem There is a snake in an n x n matrix grid and can move in four possible directions. Each cell in the grid is identifie... 2024-11-21 easy
70. Climbing Stairs Problem You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how ... 2024-11-20 easy
198. House Robber Problem You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed... 2024-11-20 medium
3244. Shortest Distance After Road Addition Queries II Problem You are given an integer n and a 2D integer array queries. There are n cities numbered from 0 to n - 1. Initially, th... 2024-11-20 hard
322. Coin Change Problem You are given an integer array coins representing coins of different denominations and an integer amount representing... 2024-11-19 medium
191. Number of 1 Bits Problem Given a positive integer n, write a function that returns the number of set bits in its binary representation (also k... 2024-11-19 easy
190. Reverse Bits Problem Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages, such as Java, there is no unsig... 2024-11-19 easy
3243. Shortest Distance After Road Addition Queries I Problem You are given an integer n and a 2D integer array queries. There are n cities numbered from 0 to n - 1. Initially, th... 2024-11-19 medium
62. Unique Paths Problem There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robo... 2024-11-19 medium
572. Subtree of Another Tree Problem Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structu... 2024-11-18 easy
57. Insert Interval Problem You are given an array of non-overlapping intervals intervals where intervals[i] = [startᵢ, endᵢ] represent the start... 2024-11-18 medium
56. Merge Intervals Problem Given an array of intervals where intervals[i] = [startᵢ, endᵢ], merge all overlapping intervals, and retur... 2024-11-18 medium
55. Jump Game Problem You are given an integer array nums. You are initially positioned at the array’s first index, and each element in the... 2024-11-18 medium
54. Spiral Matrix Problem Given an m x n matrix, return all elements of the matrix in spiral order. https://leetcode.com/problems/spiral-matrix... 2024-11-18 medium