题库chevron_right分类chevron_right脑筋急转弯
psychology

脑筋急转弯

16 道题目
简单: 2中等: 13困难: 1

脑筋急转弯 是技术面试里最常出现的能力维度之一。建议先掌握基础题型的边界处理,再逐步过渡到模式识别和复杂度 trade-off。

面试场景

高频考察问题建模、边界条件与口头表达的清晰度。

常见误区

只背模板不解释为什么,容易在追问里失分。

练习策略

每轮练 3-5 题,固定复盘复杂度和可替代解法。

推荐练习顺序

#题目难度
292

Nim 游戏

In Nim Game, determine if you can win given a certain number of stones, assuming optimal play from both players.

简单
319

灯泡开关

Bulb Switcher challenges you to find how many bulbs remain on after n toggling rounds using a math-based insight.

中等
810

黑板异或游戏

The Chalkboard XOR Game is a game theory problem involving array manipulation and bitwise XOR, where players alternate e…

困难
1025

除数博弈

Divisor Game is a game theory problem where players take turns subtracting divisors of a number n until one player loses…

简单
1033

移动石子直到连续

Solve the "Moving Stones Until Consecutive" problem using math and brainteaser patterns by determining the minimum and m…

中等
1227

飞机座位分配概率

Calculate the probability that the last passenger sits in their assigned seat using state transition dynamic programming…

中等
1503

所有蚂蚁掉下来前的最后一刻

This problem involves simulating ant movement on a plank to determine the last moment before all ants fall off.

中等
2396

严格回文的数字

Determine if a number is strictly palindromic in all bases from 2 to n minus 2 using two-pointer scanning and invariant …

中等
2419

按位与最大的最长子数组

Find the length of the longest subarray whose bitwise AND reaches the array's maximum value, combining array scanning wi…

中等
2425

所有数对的异或和

Compute the overall bitwise XOR from all pairings between two arrays using efficient array and bit manipulation techniqu…

中等
2568

最小无法得到的或值

Find the smallest positive integer that cannot be formed from any subsequence OR combination in the array.

中等
2731

移动机器人

Calculate total distances between robots moving on a number line while accounting for collisions using array plus braint…

中等
2745

构造最长的新字符串

Maximize the length of a string built from AA, BB, and AB without creating triple repeats using DP and greedy logic.

中等
2749

得到整数零需要执行的最少操作数

This problem challenges you to compute the minimum operations to reduce an integer to zero using bit manipulation and st…

中等
3227

字符串元音游戏

Solve the Vowels Game in a String using optimal moves and string analysis to predict the winner efficiently and accurate…

中等
3577

统计计算机解锁顺序排列数

Calculate the total valid unlocking sequences for computers based on their complexity using array and combinatorics logi…

中等

关联高频模式

LeetCode 脑筋急转弯题型题解:16题训练路线