1656. Design an Ordered Stream Problem There is a stream of n (idKey, value) pairs arriving in an arbitrary order, where idKey is an integer between 1 and n... 2025-02-24 easy
2506. Count Pairs Of Similar Strings Problem You are given a 0-indexed string array words. Two strings are similar if they consist of the same characters. For ex... 2025-02-22 easy
2595. Number of Even and Odd Bits Problem You are given a positive integer n. Let even denote the number of even indices in the binary representation of n with... 2025-02-20 easy
1287. Element Appearing More Than 25% In Sorted Array Problem Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more tha... 2025-02-17 easy
1299. Replace Elements with Greatest Element on Right Side Problem Given an array arr, replace every element in that array with the greatest element among the elements to its right, an... 2025-02-16 easy
1742. Maximum Number of Balls in a Box Problem You are working in a ball factory where you have n balls numbered from lowLimit up to highLimit inclusive (i.e., n ==... 2025-02-13 easy
3174. Clear Digits Problem You are given a string s. Your task is to remove all digits by doing this operation repeatedly: Delete the first dig... 2025-02-10 easy
26. Remove Duplicates from Sorted Array Problem Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique elem... 2025-02-09 easy
59. Spiral Matrix II Problem Given a positive integer n, generate an n x n matrix filled with elements from 1 to n² in spiral order. https://leetc... 2025-02-07 easy
47. Permutations II Problem Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in a... 2025-02-06 easy
46. Permutations Problem Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any orde... 2025-02-06 easy
1790. Check if One String Swap Can Make Strings Equal Problem You are given two strings s1 and s2 of equal length. A string swap is an operation where you choose two indices in a ... 2025-02-05 easy
90. Subsets II Problem Given an integer array nums that may contain duplicates, return all possible subsets (the power set). A subset of an... 2025-02-05 easy
78. Subsets Problem Given an integer array nums of unique elements, return all possible subsets (the power set). A subset of an array is... 2025-02-05 easy
1800. Maximum Ascending Subarray Sum Problem Given an array of positive integers nums, return the maximum possible sum of an ascending subarray in nums. A subarra... 2025-02-04 easy
922. Sort Array By Parity II Problem Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so... 2025-02-04 easy
905. Sort Array By Parity Problem Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integer... 2025-02-04 easy
3105. Longest Strictly Increasing or Strictly Decreasing Subarray Problem You are given an array of integers nums. Return the length of the longest subarray of nums which is either strictly i... 2025-02-03 easy
680. Valid Palindrome II Problem Given a string s, return true if the s can be palindrome after deleting at most one character from it. https://leetco... 2025-02-03 easy
1752. Check if Array Is Sorted and Rotated Problem Given an array nums, return true if the array was originally sorted in non-decreasing order, then rotated some number... 2025-02-02 easy
598. Range Addition II Problem You are given an m x n matrix M initialized with all 0’s and an array of operations ops, where ops[i] = [aᵢ, bᵢ] mean... 2025-02-02 easy
541. Reverse String II Problem Given a string s and an integer k, reverse the first k characters for every 2k characters counting from the start of ... 2025-01-31 easy
344. Reverse String Problem Write a function that reverses a string. The input string is given as an array of characters s. You must do this by m... 2025-01-31 easy
350. Intersection of Two Arrays II Problem Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appe... 2025-01-30 easy
349. Intersection of Two Arrays Problem Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be u... 2025-01-30 easy
219. Contains Duplicate II Problem Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such... 2025-01-29 easy
118. Pascal’s Triangle Problem Given an integer numRows, return the first numRows of Pascal’s triangle. In Pascal’s triangle, each number is the sum... 2025-01-28 easy
119. Pascal's Triangle II Problem Given an integer rowIndex, return the rowIndexᵗʰ (0-indexed) row of the Pascal’s triangle. In Pascal’s triangle, each... 2025-01-28 easy
2239. Find Closest Number to Zero Problem Given an integer array nums of size n, return the number with the value closest to 0 in nums. If there are multiple a... 2025-01-20 easy
3095. Shortest Subarray With OR at Least K I Problem You are given an array nums of non-negative integers and an integer k. An array is called special if the bitwise OR o... 2025-01-16 easy
3065. Minimum Operations to Exceed Threshold Value I Problem You are given a 0-indexed integer array nums, and an integer k. In one operation, you can remove one occurrence of th... 2025-01-14 easy
3270. Find the Key of the Numbers Problem You are given three positive integers num1, num2, and num3. The key of num1, num2, and num3 is defined as a four-digi... 2025-01-11 easy