Nov 18, 2025
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
leetcodealgorithmmediumcppstringhash-tableproblem-solving
Nov 18, 2025
You are given a 0-indexed array of integers nums of length n. You are initially positioned at nums[0].
leetcodealgorithmmediumcpparraygreedyproblem-solving
Nov 18, 2025
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two...
leetcodealgorithmmediumcpplinked-listrecursionproblem-solving
Nov 18, 2025
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. The only constraint stopping you from robbing each of...
leetcodealgorithmmediumcppdynamic-programmingdpproblem-solving
Nov 18, 2025
The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1....
leetcodealgorithmeasycppdynamic-programmingrecursionproblem-solving
Nov 18, 2025
Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head.
leetcodealgorithmeasycpplinked-listiterationproblem-solving
Nov 17, 2025
Given a 2D integer array nums, return all elements of nums in diagonal order.
leetcodealgorithmmediumcpparraymatrixhash-mapbfsproblem-solving
Nov 16, 2025
Given the head of a singly linked list, reverse the list, and return the reversed list.
leetcodealgorithmeasycpplinked-listrecursioniterationproblem-solving
Nov 15, 2025
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
leetcodealgorithmmediumcppdesigndata-structureshash-maplinked-listproblem-solving
Nov 14, 2025
A valid IP address consists of exactly four integers separated by single dots. Each integer is between 0 and 255 (inclusive) and cannot have leading zeros.
leetcodealgorithmmediumcppbacktrackingstringproblem-solving