🚀 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 #889LC-661Math & Geometry
Easy

Image Smoother (图片平滑器)

Given an m x n integer matrix img representing an image, return the smoothed image in which each cell becomes the floor of the ave...

View Solution→
NeetCode #890LC-1688Math & Geometry
Easy

Count of Matches in Tournament (比赛中的配对次数)

In a tournament with n teams, teams are paired each round; the winner advances and the loser is eliminated, until a single champio...

View Solution→
NeetCode #891LC-1518Math & Geometry
Easy

Water Bottles (换水问题)

You start with numBottles full water bottles. You may exchange numExchange empty bottles for one full bottle. Return the maximum n...

View Solution→
NeetCode #892LC-2373Math & Geometry
Easy

Largest Local Values in a Matrix (矩阵中的局部最大值)

Given an n x n integer matrix grid, return an (n - 2) x (n - 2) matrix where each entry is the maximum value in the corresponding ...

View Solution→
NeetCode #893LC-342Math & Geometry
Easy

Power of Four (4 的幂)

Given an integer n, return true if it is a power of four, otherwise false. Constraints: -2^31 <= n <= 2^31 - 1.

View Solution→
NeetCode #894LC-1380Math & Geometry
Easy

Lucky Numbers in a Matrix (矩阵中的幸运数)

Given an m x n matrix of distinct integers, return all lucky numbers in any order. A lucky number is an element that is the minimu...

View Solution→
NeetCode #895LC-1134Math & GeometryNC Algo100
Easy

Armstrong Number (阿姆斯特朗数)

Given an integer n, return true if it is an Armstrong number: the sum of each of its digits raised to the power of the number of d...

View Solution→
NeetCode #896LC-1180Math & GeometryNC Algo100
Easy

Count Substrings with Only One Distinct Letter (统计只含单一字母的子串)

Given a string s, return the number of substrings that contain only one distinct letter, meaning every character in the substring ...

View Solution→
NeetCode #897LC-1538Math & GeometryNC Algo100
Medium

Guess the Majority in a Hidden Array (找出隐藏数组中出现次数最多的值)

This is an interactive problem, so it cannot be run offline: the hidden binary array is only reachable through the provided ArrayR...

View Solution→
NeetCode #898LC-1183Math & GeometryNC Algo100
Hard

Maximum Number of Ones (矩阵中 1 的最大数量)

You are given the dimensions width and height of a binary matrix, a window size sideLength, and maxOnes. Place ones so that every ...

View Solution→
NeetCode #899LC-149Math & Geometry
Hard

Max Points on a Line (直线上最多的点数)

Given an array points where points[i] = [xi, yi] represents a point on the X-Y plane, return the maximum number of points that lie...

View Solution→
NeetCode #900LC-840Math & Geometry
Medium

Magic Squares In Grid (矩阵中的幻方)

A 3x3 magic square contains each of the integers 1 to 9 exactly once, and every row, every column and both diagonals sum to the sa...

View Solution→
NeetCode #901LC-48Math & GeometryBlind 75NC 150NC 250
Medium

Rotate Image (旋转图像)

You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees clockwise, in place (do not allocate anothe...

View Solution→
NeetCode #902LC-54Math & GeometryBlind 75NC 150NC 250
Medium

Spiral Matrix (螺旋矩阵)

Given an m x n matrix, return all of its elements in spiral order, starting at the top-left and moving clockwise inward. Constrain...

View Solution→
NeetCode #903LC-59Math & Geometry
Medium

Spiral Matrix II (螺旋矩阵 II)

Given a positive integer n, generate an n x n matrix filled with the numbers 1 through n^2 arranged in spiral order, starting at t...

View Solution→
NeetCode #904LC-885Math & Geometry
Medium

Spiral Matrix III (螺旋矩阵 III)

Starting at (rStart, cStart) in a rows x cols grid, walk clockwise in a spiral: east, south, west, north, then east again, expandi...

View Solution→
NeetCode #905LC-2326Math & Geometry
Medium

Spiral Matrix IV (螺旋矩阵 IV)

Given two integers m and n and the head of a singly linked list, fill an m x n matrix with the list's values in spiral order, star...

View Solution→
NeetCode #906LC-73Math & GeometryBlind 75NC 150NC 250
Medium

Set Matrix Zeroes (矩阵置零)

Given an m x n integer matrix, if an element is 0, set its entire row and column to 0, modifying the matrix in place. Constraints:...

View Solution→
NeetCode #907LC-202Math & GeometryNC 150NC 250
Easy

Happy Number (快乐数)

A happy number is a number that eventually reaches 1 when repeatedly replaced by the sum of the squares of its decimal digits; an ...

View Solution→
NeetCode #908LC-66Math & GeometryNC 150NC 250
Easy

Plus One (加一)

Given a non-empty array digits of decimal digits representing a non-negative integer with the most significant digit first and no ...

View Solution→
NeetCode #909LC-9Math & Geometry
Easy

Palindrome Number (回文数)

Given an integer x, return true if x reads the same forwards and backwards, otherwise false. Constraints: -2^31 <= x <= 2^31...

View Solution→
NeetCode #910LC-263Math & Geometry
Easy

Ugly Number (丑数)

An ugly number is a positive integer whose prime factors are limited to 2, 3 and 5. Given an integer n, return true if it is ugly,...

View Solution→
NeetCode #911LC-2022Math & Geometry
Easy

Convert 1D Array Into 2D Array (将一维数组转变成二维数组)

Given a 1D array original and two integers m and n, build an m x n 2D array by filling it row by row with the elements of original...

View Solution→
NeetCode #912LC-1260Math & Geometry
Easy

Shift 2D Grid (二维网格迁移)

Given an m x n grid and an integer k, shift the grid k times: each shift moves grid[i][j] to grid[i][j + 1], wraps the last elemen...

View Solution→