Nov 17, 2025
Given a 2D integer array nums, return all elements of nums in diagonal order.
leetcodealgorithmmediumjavaarraymatrixhash-mapbfsproblem-solving
Nov 16, 2025
Given the head of a singly linked list, reverse the list, and return the reversed list.
leetcodealgorithmeasyjavalinked-listrecursioniterationproblem-solving
Nov 15, 2025
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
leetcodealgorithmmediumjavadesigndata-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.
leetcodealgorithmmediumjavabacktrackingstringproblem-solving
Nov 14, 2025
Design and implement a data structure for a Least Frequently Used (LFU) cache.
leetcodealgorithmhardjavadesigndata-structureshash-maplinked-listproblem-solving
Nov 14, 2025
The stack is one of the most versatile data structures in coding interviews. Whether you’re matching parentheses, evaluating expressions, or finding the next greater element in an array, a stack...
leetcodetemplatesstackdata-structures
Nov 14, 2025
Minimal, copy-paste Java for expression evaluation with +, −, ×, ÷ and parentheses. See also Stack for RPN and nested expressions. Contents Basic Calculator (+, -, parentheses) Basic Calculator II...
leetcodetemplatescalculatorexpression-evaluation
Nov 14, 2025
Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.
leetcodealgorithmmediumjavastringstackexpression-evaluationproblem-solving
Nov 14, 2025
Implement a basic calculator to evaluate a simple expression string.
leetcodealgorithmhardjavastringstackrecursionexpression-evaluationproblem-solving
Nov 14, 2025
Given a string s which represents an expression, evaluate this expression and return its value.
leetcodealgorithmmediumjavastringstackexpression-evaluationproblem-solving