🚀 NeetCode 973 Algorithm HandbookBlind 75 · NC 150 · NC 25019 Core Categories

NeetCode Comprehensive Algorithm Bank & Offline Handbook

Synchronized bilingual toggle with dual NeetCode & LeetCode problem numbering and direct links. Features step-by-step logic, benchmark Python3 code, complexity analysis, interview pitfalls, and standalone offline exports.

Mastery Progress
0.0%(0/973)
● Mastered: 0
◐ Reviewing: 0
○ Unstarted: 973
🔍
🎯 Featured Lists
📂 Categories (19 Core Topics)
Diff:
Mastery:
Showing 24 problems
NeetCode #337LC-725Linked List
Medium

Split Linked List in Parts (分隔链表)

Given the head of a singly linked list and an integer k, split the list into k consecutive parts. The parts must have sizes differ...

View Solution→
NeetCode #338LC-146Linked ListNC 150NC 250
Medium

LRU Cache (LRU 缓存)

Design a Least Recently Used (LRU) cache with a fixed capacity. Implement get(key) returning the value or -1, and put(key, value)....

View Solution→
NeetCode #339LC-1836Linked List
Medium

Remove Duplicates From an Unsorted Linked List (从未排序的链表中移除重复元素)

Given the head of an unsorted linked list, remove all nodes that have duplicate values, keeping only the distinct values, and retu...

View Solution→
NeetCode #340LC-460Linked ListNC 250
Hard

LFU Cache (LFU 缓存)

Design a Least Frequently Used (LFU) cache with a fixed capacity. get(key) and put(key, value) must run in O(1). On eviction, remo...

View Solution→
NeetCode #341LC-23Linked ListBlind 75NC 150NC 250
Hard

Merge k Sorted Lists (合并 K 个升序链表)

You are given an array of k sorted linked lists. Merge them into one sorted list and return its head. Constraints: k is in [0, 10^...

View Solution→
NeetCode #342LC-25Linked ListNC 150NC 250
Hard

Reverse Nodes in k-Group (K 个一组翻转链表)

Given the head of a linked list, reverse the nodes k at a time and return the modified list. If the number of nodes is not a multi...

View Solution→
NeetCode #343LC-1598Stack
Easy

Crawler Log Folder (文件夹操作日志搜集器)

You are given a list of folder operations: "../" moves to the parent folder (a no-op at the root), "./" stays in the current folde...

View Solution→
NeetCode #344LC-682StackNC 250
Easy

Baseball Game (棒球比赛)

You are keeping score for a baseball game with strange rules. Given a list of operations, return the total score. Operations: an i...

View Solution→
NeetCode #345LC-20StackBlind 75NC 150NC 250
Easy

Valid Parentheses (有效的括号)

Given a string s containing only the characters (, ), {, }, [ and ], determine whether the brackets are correctly matched and nest...

View Solution→
NeetCode #346LC-225StackNC 250
Easy

Implement Stack using Queues (用队列实现栈)

Implement a last-in-first-out stack using only two queues, supporting push, pop, top and empty. Constraints: 1 <= x <= 9; at...

View Solution→
NeetCode #347LC-232StackNC 250
Easy

Implement Queue using Stacks (用栈实现队列)

Implement a first-in-first-out queue using only two stacks, supporting push, pop, peek and empty. Constraints: 1 <= x <= 9; ...

View Solution→
NeetCode #348LC-1475Stack
Easy

Final Prices With a Special Discount in a Shop (商品折扣后的最终价格)

You are given an array prices where prices[i] is the price of the i-th item. If there is an index j > i with prices[j] <= pr...

View Solution→
NeetCode #349LC-1544Stack
Easy

Make The String Great (整理字符串)

Given a string s of lower and upper case English letters, a string is great if no two adjacent characters are the same letter in d...

View Solution→
NeetCode #350LC-155StackNC 150NC 250
Medium

Min Stack (最小栈)

Design a stack supporting push, pop, top and getMin, all in O(1) time. Constraints: -2^31 <= val <= 2^31 - 1; at most 3 * 10...

View Solution→
NeetCode #351LC-150StackNC 150NC 250
Medium

Evaluate Reverse Polish Notation (逆波兰表达式求值)

You are given an array of strings tokens representing an arithmetic expression in Reverse Polish Notation. Evaluate it and return ...

View Solution→
NeetCode #352LC-2390Stack
Medium

Removing Stars From a String (从字符串中移除星号)

You are given a string s containing stars *. In one operation you may remove a star and the closest non-star character to its left...

View Solution→
NeetCode #353LC-946Stack
Medium

Validate Stack Sequences (验证栈序列)

Given two integer arrays pushed and popped representing the push and pop sequences of a stack, return true if they could have been...

View Solution→
NeetCode #354LC-735StackNC 250
Medium

Asteroid Collision (小行星碰撞)

We are given an array asteroids of integers representing asteroids in a row. The absolute value is the size and the sign is the di...

View Solution→
NeetCode #355LC-739StackNC 150NC 250
Medium

Daily Temperatures (每日温度)

Given an array of daily temperatures, return an array where answer[i] is the number of days you must wait after day i for a warmer...

View Solution→
NeetCode #356LC-901StackNC 250
Medium

Online Stock Span (股票价格跨度)

Design a class that collects daily price quotes and returns the span of the stock price for the current day: the number of consecu...

View Solution→
NeetCode #357LC-853StackNC 150NC 250
Medium

Car Fleet (车队)

There are n cars on a one-lane road heading to a target mile destination. position[i] and speed[i] describe car i. A faster car be...

View Solution→
NeetCode #358LC-71StackNC 250
Medium

Simplify Path (简化路径)

Given an absolute Unix-style path, simplify it to its canonical form: it must start with a single /, contain no . or .. components...

View Solution→
NeetCode #359LC-394StackNC 250
Medium

Decode String (字符串解码)

Given an encoded string, return its decoded form. The encoding rule is k[encoded_string], meaning the enclosed string repeats exac...

View Solution→
NeetCode #360LC-402Stack
Medium

Remove K Digits (移掉 K 位数字)

Given a non-negative integer as a string num and an integer k, remove k digits so that the remaining number is the smallest possib...

View Solution→