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 ...

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...

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ᵢ] ...

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 cons...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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...

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 ...

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...

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...

hard

322. Coin Change

Problem You are given an integer array coins representing coins of different denominations and an integer amount representing...

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...

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...

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...

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...

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...

easy

57. Insert Interval

Problem You are given an array of non-overlapping intervals intervals where intervals[i] = [startᵢ, endᵢ] represent the start...

medium

56. Merge Intervals

Problem Given an array of intervals where intervals[i] = [startᵢ, endᵢ], merge all overlapping intervals, and return an array...

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...

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...

medium

53. Maximum Subarray

Problem Given an integer array nums, find the subarray with the largest sum, and return its sum. A subarray is a contiguous ...

medium

661. Image Smoother

Problem An image smoother is a filter of the size 3 x 3 that can be applied to each cell of an image by rounding down the ave...

easy

435. Non-overlapping Intervals

Problem Given an array of intervals intervals where intervals[i] = [startᵢ, endᵢ], return the minimum number of intervals you...

medium

49. Group Anagrams

Problem Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a...

medium
12345