2353. Design a Food Rating System Problem Design a food rating system that can do the following: Modify the rating of a food item listed in the system. Return... 2025-02-28 medium
873. Length of Longest Fibonacci Subsequence Problem A sequence x₁, x₂, ..., xₙ is Fibonacci-like if: n >= 3 xᵢ + xᵢ₊₁ == xᵢ₊₂ for all i + 2 <= n Given a strictly... 2025-02-27 medium
1524. Number of Sub-arrays With Odd Sum Problem Given an array of integers arr, return the number of subarrays with an odd sum. Since the answer can be very large, r... 2025-02-26 medium
1749. Maximum Absolute Sum of Any Subarray Problem You are given an integer array nums. The absolute sum of a subarray [numsₗ, numsₗ₊₁, ..., numsᵣ₋₁, numsᵣ] is abs(nums... 2025-02-26 medium
1472. Design Browser History Problem You have a browser of one tab where you start on the homepage and you can visit another url, get back in the history ... 2025-02-26 medium
2502. Design Memory Allocator Problem You are given an integer n representing the size of a 0-indexed memory array. All memory units are initially free. Yo... 2025-02-25 medium
2467. Most Profitable Path in a Tree Problem There is an undirected tree with n nodes labeled from 0 to n - 1, rooted at node 0. You are given a 2D integer array ... 2025-02-24 medium
889. Construct Binary Tree from Preorder and Postorder Traversal Problem Given two integer arrays, preorder and postorder where preorder is the preorder traversal of a binary tree of distinc... 2025-02-23 medium
1261. Find Elements in a Contaminated Binary Tree Problem Given a binary tree with the following rules: root.val == 0 For any treeNode: If treeNode.val has a value x and tre... 2025-02-21 medium
1980. Find Unique Binary String Problem Given an array of strings nums containing n unique binary strings each of length n, return a binary string of length ... 2025-02-20 medium
2944. Minimum Number of Coins for Fruits Problem You are given an 0-indexed integer array prices where prices[i] denotes the number of coins needed to purchase the (i... 2025-02-19 medium
1415. The k-th Lexicographical String of All Happy Strings of Length n Problem A happy string is a string that: consists only of letters of the set ['a', 'b', 'c']. s[i] != s[i + 1] for all value... 2025-02-19 medium
624. Maximum Distance in Arrays Problem You are given m arrays, where each array is sorted in ascending order. You can pick up two integers from two differen... 2025-02-19 medium
2375. Construct Smallest Number From DI String Problem You are given a 0-indexed string pattern of length n consisting of the characters 'I' meaning increasing and 'D' mean... 2025-02-18 medium
2080. Range Frequency Queries Problem Design a data structure to find the frequency of a given value in a given subarray. The frequency of a value in a sub... 2025-02-18 medium
1079. Letter Tile Possibilities Problem You have n tiles, where each tile has one letter tiles[i] printed on it. Return the number of possible non-empty... 2025-02-17 medium
1718. Construct the Lexicographically Largest Valid Sequence Problem Given an integer n, find a sequence that satisfies all of the following: The integer 1 occurs once in the sequence. ... 2025-02-16 medium
2698. Find the Punishment Number of an Integer Problem Given a positive integer n, return the punishment number of n. The punishment number of n is defined as the sum of th... 2025-02-15 medium
1706. Where Will the Ball Fall Problem You have a 2-D grid of size m x n representing a box, and you have n balls. The box is open on the top and bottom sid... 2025-02-15 medium
1352. Product of the Last K Numbers Problem Design an algorithm that accepts a stream of integers and retrieves the product of the last k integers of the stream.... 2025-02-14 medium
1552. Magnetic Force Between Two Balls Problem In the universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they are put in hi... 2025-02-14 medium
2342. Max Sum of a Pair With Equal Sum of Digits Problem You are given a 0-indexed array nums consisting of positive integers. You can choose two indices i and j, such that i... 2025-02-12 medium
1910. Remove All Occurrences of a Substring Problem Given two strings s and part, perform the following operation on s until all occurrences of the substring part are re... 2025-02-11 medium
2364. Count Number of Bad Pairs Problem You are given a 0-indexed integer array nums. A pair of indices (i, j) is a bad pair if i < j and j - i != nums[j]... 2025-02-09 medium
80. Remove Duplicates from Sorted Array II Problem Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique ele... 2025-02-09 medium
2349. Design a Number Container System Problem Design a number container system that can do the following: Insert or Replace a number at the given index in the sys... 2025-02-08 medium
63. Unique Paths II Problem You are given an m x n integer array grid. There is a robot initially located at the top-left corner (i.e., grid[0][0... 2025-02-08 medium
3160. Find the Number of Distinct Colors Among the Balls Problem You are given an integer limit and a 2D array queries of size n x 2. There are limit + 1 balls with distinct labels i... 2025-02-07 medium
1726. Tuple with Same Product Problem Given an array nums of distinct positive integers, return the number of tuples (a, b, c, d) such that a * b = c * d w... 2025-02-06 medium
81. Search in Rotated Sorted Array II Problem There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values). Before being pa... 2025-02-01 medium
2658. Maximum Number of Fish in a Grid Problem You are given a 0-indexed 2D matrix grid of size m x n, where (r, c) represents: A land cell if grid[r][c] = 0, or A... 2025-01-28 medium
1462. Course Schedule IV Problem There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array pr... 2025-01-27 medium