Problems
440 題。用下方條件即時篩選。要搜解法內文請用 🔍 全文搜尋。
🗂️ Arrays & Hashing#1Two Sum
🔗 Linked List#2Add Two Numbers
🪟 Sliding Window#3Longest Substring Without Repeating Characters
🔍 Binary Search#4Median of Two Sorted Arrays
📈 1-D DP#5Longest Palindromic Substring
📐 Math & Geometry#6Zigzag Conversion
🔢 Bit Manipulation#7Reverse Integer
📐 Math & Geometry#8String to Integer (atoi)
📐 Math & Geometry#9Palindrome Number
🧮 2-D DP#10Regular Expression Matching
👉 Two Pointers#11Container With Most Water
📐 Math & Geometry#12Integer to Roman
📐 Math & Geometry#13Roman to Integer
🗂️ Arrays & Hashing#14Longest Common Prefix
👉 Two Pointers#153Sum
🔙 Backtracking#17Letter Combinations of a Phone Number
👉 Two Pointers#184Sum
🔗 Linked List#19Remove Nth Node From End of List
📚 Stack#20Valid Parentheses
🔗 Linked List#21Merge Two Sorted Lists
📚 Stack#22Generate Parentheses
🔗 Linked List#23Merge k Sorted Lists
🔗 Linked List#24Swap Nodes In Pairs
🔗 Linked List#25Reverse Nodes in k-Group
👉 Two Pointers#26Remove Duplicates From Sorted Array
🗂️ Arrays & Hashing#27Remove Element
🗂️ Arrays & Hashing#28Find The Index of The First Occurrence in a String
🔢 Bit Manipulation#29Divide Two Integers
🗂️ Arrays & Hashing#31Next Permutation
📚 Stack#32Longest Valid Parentheses
🔍 Binary Search#33Search in Rotated Sorted Array
🔍 Binary Search#34Find First and Last Position of Element in Sorted Array
🔍 Binary Search#35Search Insert Position
🗂️ Arrays & Hashing#36Valid Sudoku
🔙 Backtracking#39Combination Sum
🔙 Backtracking#40Combination Sum II
🗂️ Arrays & Hashing#41First Missing Positive
👉 Two Pointers#42Trapping Rain Water
📐 Math & Geometry#43Multiply Strings
🧮 2-D DP#44Wildcard Matching
🪙 Greedy#45Jump Game II
🔙 Backtracking#46Permutations
🔙 Backtracking#47Permutations II
📐 Math & Geometry#48Rotate Image
🗂️ Arrays & Hashing#49Group Anagrams
📐 Math & Geometry#50Pow(x, n)
🔙 Backtracking#51N-Queens
🔙 Backtracking#52N Queens II
🪙 Greedy#53Maximum Subarray
📐 Math & Geometry#54Spiral Matrix
🪙 Greedy#55Jump Game
📏 Intervals#56Merge Intervals
📏 Intervals#57Insert Interval
🗂️ Arrays & Hashing#58Length of Last Word
📐 Math & Geometry#59Spiral Matrix II
🔗 Linked List#61Rotate List
🧮 2-D DP#62Unique Paths
🧮 2-D DP#63Unique Paths II
🧮 2-D DP#64Minimum Path Sum
📐 Math & Geometry#66Plus One
🔢 Bit Manipulation#67Add Binary
🗂️ Arrays & Hashing#68Text Justification
🔍 Binary Search#69Sqrt(x)
📈 1-D DP#70Climbing Stairs
📚 Stack#71Simplify Path
🧮 2-D DP#72Edit Distance
📐 Math & Geometry#73Set Matrix Zeroes
🔍 Binary Search#74Search a 2D Matrix
🗂️ Arrays & Hashing#75Sort Colors
🪟 Sliding Window#76Minimum Window Substring
🔙 Backtracking#77Combinations
🔙 Backtracking#78Subsets
🔙 Backtracking#79Word Search
👉 Two Pointers#80Remove Duplicates From Sorted Array II
🔍 Binary Search#81Search In Rotated Sorted Array II
🔗 Linked List#83Remove Duplicates From Sorted List
📚 Stack#85Maximal Rectangle
🔗 Linked List#86Partition List
👉 Two Pointers#88Merge Sorted Array
🔙 Backtracking#90Subsets II
📈 1-D DP#91Decode Ways
🔗 Linked List#92Reverse Linked List II
🔙 Backtracking#93Restore IP Addresses
🧮 2-D DP#97Interleaving String
🌳 Trees#100Same Tree
🌳 Trees#101Symmetric Tree
🌳 Trees#110Balanced Binary Tree
🌳 Trees#112Path Sum
🧮 2-D DP#115Distinct Subsequences
🔍 Binary Search#116Populating Next Right Pointers in Each Node
🗂️ Arrays & Hashing#118Pascals Triangle
📈 1-D DP#120Triangle
🪟 Sliding Window#121Best Time to Buy and Sell Stock
🗂️ Arrays & Hashing#122Best Time to Buy And Sell Stock II
👉 Two Pointers#125Valid Palindrome
🗺️ Graphs#126Word Ladder II
🗺️ Graphs#127Word Ladder
🗂️ Arrays & Hashing#128Longest Consecutive Sequence
🌳 Trees#129Sum Root to Leaf Numbers
🗺️ Graphs#130Surrounded Regions
🔙 Backtracking#131Palindrome Partitioning
🗺️ Graphs#133Clone Graph
🪙 Greedy#134Gas Station
🪙 Greedy#135Candy
🔢 Bit Manipulation#136Single Number
🔗 Linked List#138Copy List with Random Pointer
📈 1-D DP#139Word Break
🔙 Backtracking#140Word Break II
🔗 Linked List#141Linked List Cycle
🔗 Linked List#143Reorder List
🔗 Linked List#146LRU Cache
🔗 Linked List#147Insertion Sort List
🔗 Linked List#148Sort List
📐 Math & Geometry#149Max Points on a Line
📈 1-D DP#152Maximum Product Subarray
🔍 Binary Search#153Find Minimum in Rotated Sorted Array
📚 Stack#155Min Stack
🔗 Linked List#160Intersection of Two Linked Lists
🔍 Binary Search#162Find Peak Element
👉 Two Pointers#167Two Sum II - Input Array Is Sorted
📐 Math & Geometry#168Excel Sheet Column Title
🗂️ Arrays & Hashing#169Majority Element
🧮 2-D DP#174Dungeon Game
🗂️ Arrays & Hashing#179Largest Number
🗂️ Arrays & Hashing#187Repeated DNA Sequences
👉 Two Pointers#189Rotate Array
🔢 Bit Manipulation#190Reverse Bits
🔢 Bit Manipulation#191Number of 1 Bits
📈 1-D DP#198House Robber
🗺️ Graphs#200Number of Islands
📐 Math & Geometry#202Happy Number
🔗 Linked List#203Remove Linked List Elements
🗂️ Arrays & Hashing#205Isomorphic Strings
🔗 Linked List#206Reverse Linked List
🗺️ Graphs#207Course Schedule
🪟 Sliding Window#209Minimum Size Subarray Sum
🗺️ Graphs#210Course Schedule II
🌲 Tries#212Word Search II
📈 1-D DP#213House Robber II
⛰️ Heap / Priority Queue#215Kth Largest Element in an Array
🗂️ Arrays & Hashing#217Contains Duplicate
⛰️ Heap / Priority Queue#218The Skyline Problem
🪟 Sliding Window#219Contains Duplicate II
🧮 2-D DP#221Maximal Square
🌳 Trees#226Invert Binary Tree
📚 Stack#227Basic Calculator II
🔗 Linked List#234Palindrome Linked List
🗂️ Arrays & Hashing#238Product of Array Except Self
🪟 Sliding Window#239Sliding Window Maximum
🔍 Binary Search#240Search a 2D Matrix II
🗂️ Arrays & Hashing#242Valid Anagram
📏 Intervals#252Meeting Rooms
📏 Intervals#253Meeting Rooms II
📈 1-D DP#256Paint House
🗺️ Graphs#261Graph Valid Tree
📐 Math & Geometry#263Ugly Number
🔢 Bit Manipulation#268Missing Number
🕸️ Advanced Graphs#269Alien Dictionary
🗂️ Arrays & Hashing#271Encode and Decode Strings
📈 1-D DP#279Perfect Squares
🗂️ Arrays & Hashing#280Wiggle Sort
👉 Two Pointers#283Move Zeroes
🗺️ Graphs#286Walls and Gates
🔗 Linked List#287Find the Duplicate Number
🗂️ Arrays & Hashing#290Word Pattern
⛰️ Heap / Priority Queue#295Find Median from Data Stream
🗂️ Arrays & Hashing#303Range Sum Query - Immutable
🗂️ Arrays & Hashing#304Range Sum Query 2D Immutable
🗂️ Arrays & Hashing#307Range Sum Query - Mutable
🧮 2-D DP#312Burst Balloons
🔍 Binary Search#315Count of Smaller Numbers After Self
📚 Stack#316Remove Duplicate Letters
📈 1-D DP#322Coin Change
🕸️ Advanced Graphs#332Reconstruct Itinerary
🌳 Trees#337House Robber III
🔢 Bit Manipulation#338Counting Bits
📈 1-D DP#343Integer Break
👉 Two Pointers#344Reverse String
🗂️ Arrays & Hashing#347Top K Frequent Elements
📏 Intervals#352Data Stream as Disjoint Intervals
📈 1-D DP#354Russian Doll Envelopes
⛰️ Heap / Priority Queue#355Design Twitter
🔍 Binary Search#367Valid Perfect Square
🔢 Bit Manipulation#371Sum of Two Integers
🔍 Binary Search#374Guess Number Higher Or Lower
📈 1-D DP#377Combination Sum IV
🗂️ Arrays & Hashing#380Insert Delete Get Random O(1)
🗂️ Arrays & Hashing#392Is Subsequence
📚 Stack#394Decode String
🗺️ Graphs#399Evaluate Division
📚 Stack#402Remove K Digits
🔍 Binary Search#410Split Array Largest Sum
📈 1-D DP#416Partition Equal Subset Sum
🗺️ Graphs#417Pacific Atlantic Water Flow
🪟 Sliding Window#424Longest Repeating Character Replacement
🌳 Trees#427Construct Quad Tree
📏 Intervals#435Non-overlapping Intervals
🗂️ Arrays & Hashing#438Find All Anagrams in a String
🔍 Binary Search#441Arranging Coins
🗂️ Arrays & Hashing#448Find All Numbers Disappeared in An Array
🌳 Trees#450Delete Node in a BST
📚 Stack#456132 Pattern
🔗 Linked List#460LFU Cache
🗺️ Graphs#463Island Perimeter
📈 1-D DP#472Concatenated Words
🔙 Backtracking#473Matchsticks to Square
🧮 2-D DP#474Ones and Zeroes
🧮 2-D DP#494Target Sum
🗂️ Arrays & Hashing#496Next Greater Element I
⛰️ Heap / Priority Queue#502IPO
🧮 2-D DP#518Coin Change II
🗂️ Arrays & Hashing#523Continuous Subarray Sum
🔍 Binary Search#528Random Pick with Weight
🗂️ Arrays & Hashing#535Encode and Decode TinyURL
🔍 Binary Search#540Single Element in a Sorted Array
🌳 Trees#543Diameter of Binary Tree
🗂️ Arrays & Hashing#554Brick Wall
🗂️ Arrays & Hashing#560Subarray Sum Equals K
🪟 Sliding Window#567Permutation in String
🌳 Trees#572Subtree of Another Tree
🗂️ Arrays & Hashing#605Can Place Flowers
🌳 Trees#617Merge Two Binary Trees
⛰️ Heap / Priority Queue#621Task Scheduler
🔗 Linked List#622Design Circular Queue
🪙 Greedy#646Maximum Length of Pair Chain
📈 1-D DP#647Palindromic Substrings
🪙 Greedy#649Dota2 Senate
🌳 Trees#652Find Duplicate Subtrees
🪟 Sliding Window#658Find K Closest Elements
🗂️ Arrays & Hashing#665Non Decreasing Array
🪙 Greedy#678Valid Parenthesis String
👉 Two Pointers#680Valid Palindrome II
📚 Stack#682Baseball Game
🗺️ Graphs#684Redundant Connection
📈 1-D DP#691Stickers to Spell Word
🗺️ Graphs#695Max Area of Island
🔙 Backtracking#698Partition to K Equal Sum Subsets
⛰️ Heap / Priority Queue#703Kth Largest Element in a Stream
🔍 Binary Search#704Binary Search
🗂️ Arrays & Hashing#705Design HashSet
🗂️ Arrays & Hashing#706Design HashMap
🔗 Linked List#707Design Linked List
🗺️ Graphs#721Accounts Merge
🗂️ Arrays & Hashing#724Find Pivot Index
🔗 Linked List#725Split Linked List in Parts
📚 Stack#735Asteroid Collision
📚 Stack#739Daily Temperatures
📈 1-D DP#740Delete And Earn
🕸️ Advanced Graphs#743Network Delay Time
📈 1-D DP#746Min Cost Climbing Stairs
🗺️ Graphs#752Open The Lock
🪙 Greedy#763Partition Labels
⛰️ Heap / Priority Queue#767Reorganize String
🕸️ Advanced Graphs#778Swim in Rising Water
🗺️ Graphs#785Is Graph Bipartite?
🕸️ Advanced Graphs#787Cheapest Flights Within K Stops
🗺️ Graphs#802Find Eventual Safe States
📈 1-D DP#837New 21 Game
🗂️ Arrays & Hashing#838Push Dominoes
🪙 Greedy#846Hand of Straights
📚 Stack#853Car Fleet
🔍 Binary Search#875Koko Eating Bananas
🔗 Linked List#876Middle of the Linked List
🧮 2-D DP#877Stone Game
🧮 2-D DP#879Profitable Schemes
👉 Two Pointers#881Boats to Save People
📚 Stack#895Maximum Frequency Stack
📚 Stack#901Online Stock Span
🪟 Sliding Window#904Fruit Into Baskets
🗺️ Graphs#909Snakes And Ladders
🗂️ Arrays & Hashing#912Sort an Array
🧮 2-D DP#920Number of Music Playlists
🗂️ Arrays & Hashing#929Unique Email Addresses
🗺️ Graphs#934Shortest Bridge
📚 Stack#946Validate Stack Sequences
🗺️ Graphs#953Verifying An Alien Dictionary
⛰️ Heap / Priority Queue#973K Closest Points to Origin
🔍 Binary Search#977Squares of a Sorted Array
🪙 Greedy#978Longest Turbulent Subarray
🔍 Binary Search#981Time Based Key-Value Store
📈 1-D DP#983Minimum Cost For Tickets
🔢 Bit Manipulation#989Add to Array-Form of Integer
🗺️ Graphs#994Rotting Oranges
🔍 Binary Search#1011Capacity to Ship Packages Within D Days
🗺️ Graphs#1020Number of Enclaves
🪙 Greedy#1029Two City Scheduling
📈 1-D DP#1035Uncrossed Lines
📐 Math & Geometry#1041Robot Bounded In Circle
⛰️ Heap / Priority Queue#1046Last Stone Weight
🧮 2-D DP#1049Last Stone Weight II
📐 Math & Geometry#1071Greatest Common Divisor of Strings
🗺️ Graphs#1091Shortest Path in Binary Matrix
⛰️ Heap / Priority Queue#1094Car Pooling
📈 1-D DP#1137N-th Tribonacci Number
🧮 2-D DP#1140Stone Game II
🧮 2-D DP#1143Longest Common Subsequence
🗺️ Graphs#1162As Far from Land as Possible
🗂️ Arrays & Hashing#1189Maximum Number of Balloons
🧮 2-D DP#1220Count Vowels Permutation
🗺️ Graphs#1254Number of Closed Islands
📐 Math & Geometry#1260Shift 2D Grid
🔍 Binary Search#1268Search Suggestions System
📏 Intervals#1288Remove Covered Intervals
🗂️ Arrays & Hashing#1299Replace Elements With Greatest Element On Right Side
⛰️ Heap / Priority Queue#1383Maximum Performance of a Team
🗂️ Arrays & Hashing#1396Design Underground System
⛰️ Heap / Priority Queue#1405Longest Happy String
📈 1-D DP#1406Stone Game III
🪟 Sliding Window#1456Maximum Number of Vowels in a Substring of Given Length
🗂️ Arrays & Hashing#1461Check if a String Contains all Binary Codes of Size K
🗺️ Graphs#1462Course Schedule IV
🔢 Bit Manipulation#1470Shuffle the Array
🔗 Linked List#1472Design Browser History
🕸️ Advanced Graphs#1489Find Critical and Pseudo Critical Edges in Minimum Spanning Tree
🕸️ Advanced Graphs#1514Path with Maximum Probability
📐 Math & Geometry#1523Count Odd Numbers in an Interval Range
🧮 2-D DP#1547Minimum Cost to Cut a Stick
📐 Math & Geometry#1572Matrix Diagonal Sum
🕸️ Advanced Graphs#1579Remove Max Number of Edges to Keep Graph Fully Traversable
🕸️ Advanced Graphs#1584Min Cost to Connect All Points
🗂️ Arrays & Hashing#1603Design Parking System
📈 1-D DP#1626Best Team with no Conflicts
🕸️ Advanced Graphs#1631Path with Minimum Effort
🪟 Sliding Window#1658Minimum Operations to Reduce X to Zero
⛰️ Heap / Priority Queue#1675Minimize Deviation in Array
🔗 Linked List#1721Swapping Nodes in a Linked List
👉 Two Pointers#1768Merge Strings Alternately
🗂️ Arrays & Hashing#1822Sign of An Array
⛰️ Heap / Priority Queue#1834Single Threaded CPU
🪟 Sliding Window#1838Frequency of The Most Frequent Element
⛰️ Heap / Priority Queue#1845Seat Reservation Manager
📏 Intervals#1851Minimum Interval to Include Each Query
🪙 Greedy#1871Jump Game VII
⛰️ Heap / Priority Queue#1882Process Tasks Using Servers
🔍 Binary Search#1898Maximum Number of Removable Characters
🗺️ Graphs#1905Count Sub Islands
🗂️ Arrays & Hashing#1929Concatenation of Array
🗂️ Arrays & Hashing#1930Unique Length 3 Palindromic Subsequences
🗺️ Graphs#1958Check if Move Is Legal
🗂️ Arrays & Hashing#1963Minimum Number of Swaps to Make The String Balanced
🔙 Backtracking#1980Find Unique Binary String
⛰️ Heap / Priority Queue#1985Find the Kth Largest Integer in the Array
🌳 Trees#1993Operations On Tree
🗂️ Arrays & Hashing#2001Number of Pairs of Interchangeable Rectangles
🗂️ Arrays & Hashing#2002Maximum Product of The Length of Two Palindromic Subsequences
📐 Math & Geometry#2013Detect Squares
🗂️ Arrays & Hashing#2017Grid Game
📐 Math & Geometry#2028Find Missing Observations
🗺️ Graphs#2101Detonate the Maximum Bombs
🔗 Linked List#2130Maximum Twin Sum Of A Linked List
🗂️ Arrays & Hashing#2215Find the Difference of Two Arrays
🔍 Binary Search#2300Successful Pairs of Spells and Potions
🗂️ Arrays & Hashing#2306Naming a Company
🗂️ Arrays & Hashing#2348Number of Zero-Filled Subarrays
🗂️ Arrays & Hashing#2405Optimal Partition of String
🕸️ Advanced Graphs#2421Number of Good Paths
🪙 Greedy#2439Minimize Maximum of Array
🗂️ Arrays & Hashing#2483Minimum Penalty for a Shop
⛰️ Heap / Priority Queue#2542Maximum Subsequence Score
🔍 Binary Search#2616Minimize the Maximum Difference of Pairs
沒有符合條件的題目。