面试场景
高频考察问题建模、边界条件与口头表达的清晰度。
常见误区
只背模板不解释为什么,容易在追问里失分。
练习策略
每轮练 3-5 题,固定复盘复杂度和可替代解法。
推荐练习顺序
题库
模拟 题库
先展示一段最适合快速浏览的题目列表,继续滚动时再慢慢续载,避免专题页被长列表一下子拉穿。
慢加载专题题库
适合这类题很多的专题,先扫结构,再逐步深入。
当前展示 24 / 171 道题目
每次续载 24 题字符串相乘
Multiply Strings requires simulating integer multiplication using only string operations without direct numeric conversi…
螺旋矩阵
Given an m x n matrix, return all elements in spiral order starting from the top-left corner.
螺旋矩阵 II
Generate a spiral matrix of size n x n, filled with elements from 1 to n² in spiral order, for interview-focused solving…
二进制求和
Add Binary involves summing two binary strings and returning the result as a binary string using math and string manipul…
文本左右对齐
Text Justification requires packing words into lines to match a specified width, ensuring even distribution of spaces.
各位相加
Add Digits involves repeatedly summing digits of a number until a single digit is obtained.
生命游戏
Solve the Game of Life by updating each cell based on its eight neighbors using Array and Matrix simulation patterns eff…
Fizz Buzz
Generate a list from 1 to n replacing multiples of 3 with Fizz, 5 with Buzz, and both with FizzBuzz efficiently.
字符串相加
Given two non-negative integers as strings, sum them and return the result as a string without converting to integers di…
提莫攻击
Compute the total poisoned time Ashe experiences from Teemo's attacks using an array-based simulation approach efficient…
对角线遍历
Traverse a matrix diagonally and return all elements in the specific zig-zag order required by the problem pattern.
复数乘法
This problem requires multiplying two complex numbers, given in string form, and returning the result in the same format…
重塑矩阵
Reshape the Matrix involves transforming a 2D matrix into a new matrix with the same elements in row-major order, follow…
分数加减运算
Solve fraction addition and subtraction by handling expressions, calculating results, and simplifying fractions to irred…
求解方程
Solve the equation for the variable 'x' and determine its value or state if there is no solution or infinite solutions.
机器人能否返回原点
Judge whether a robot returns to the origin after a sequence of moves using string manipulation and simulation.
棒球比赛
Simulate baseball score operations using a stack-based approach to compute the final score after all operations.
小行星碰撞
Determine the final positions of moving asteroids using a stack-based simulation for efficient collision resolution in l…
隔离病毒
Contain Virus involves using array-based Depth-First Search to contain viral spread by building walls around infected re…
翻转图像
Flip each row of a binary matrix horizontally and invert its values efficiently using a two-pointer scanning approach.
比较含退格的字符串
Compare two strings after processing backspaces using efficient two-pointer scanning and careful invariant tracking to e…
转置矩阵
Transpose Matrix problem requires flipping a matrix's rows and columns to return the transposed version.
模拟行走机器人
The Walking Robot Simulation problem involves moving a robot in an infinite grid and calculating its furthest distance f…
螺旋矩阵 III
Solve the Spiral Matrix III problem by simulating the movement across a matrix with specific constraints on direction an…
swap_vert在题库框内继续向下滚动,也会自动续载