Brainteaser Problems
Master brainteaser problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 12 problems in this category.
Total Problems: 12
Easy: 2
Medium: 9
Hard: 1
Showing 12 of 12 problems
Problems
Scroll within this area to browse all problems
#
Title
Difficulty
Brainteaser LeetCode Problems List
- 292. Nim Game - Easy - BrainteaserYou are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table. You and your friend will alternate taking ... Topics: Math, Brainteaser, Game Theory
- 319. Bulb Switcher - Medium - BrainteaserThere are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb. On the third round, you toggle every t... Topics: Math, Brainteaser
- 2481. Strictly Palindromic Number - Medium - BrainteaserAn integer n is strictly palindromic if, for every base b between 2 and n - 2 (inclusive), the string representation of the integer n in base b is pal... Topics: Math, Two Pointers, Brainteaser
- 1086. Divisor Game - Easy - BrainteaserAlice and Bob take turns playing a game, with Alice starting first. Initially, there is a number n on the chalkboard. On each player's turn, that play... Topics: Math, Dynamic Programming, Brainteaser, Game Theory
- 2503. Longest Subarray With Maximum Bitwise AND - Medium - BrainteaserYou are given an integer array nums of size n. Consider a non-empty subarray from nums that has the maximum possible bitwise AND. In other words, let ... Topics: Array, Bit Manipulation, Brainteaser
- 3462. Vowels Game in a String - Medium - BrainteaserAlice and Bob are playing a game on a string. You are given a string s, Alice and Bob will take turns playing the following game where Alice starts fi... Topics: Math, String, Brainteaser, Game Theory
- 1627. Last Moment Before All Ants Fall Out of a Plank - Medium - BrainteaserWe have a wooden plank of the length n units. Some ants are walking on the plank, each ant moves with a speed of 1 unit per second. Some of the ants m... Topics: Array, Brainteaser, Simulation
- 3864. Count the Number of Computer Unlocking Permutations - Medium - BrainteaserYou are given an array complexity of length n. There are n locked computers in a room with labels from 0 to n - 1, each with its own unique password. ... Topics: Array, Math, Brainteaser, Combinatorics
- 1362. Airplane Seat Assignment Probability - Medium - Brainteasern passengers board an airplane with exactly n seats. The first passenger has lost the ticket and picks a seat randomly. But after that, the rest of th... Topics: Math, Dynamic Programming, Brainteaser, Probability and Statistics
- 2787. Movement of Robots - Medium - BrainteaserSome robots are standing on an infinite number line with their initial coordinates given by a 0-indexed integer array nums and will start moving once ... Topics: Array, Brainteaser, Sorting, Prefix Sum
- 2533. Bitwise XOR of All Pairings - Medium - BrainteaserYou are given two 0-indexed arrays, nums1 and nums2, consisting of non-negative integers. Let there be another array, nums3, which contains the bitwis... Topics: Array, Bit Manipulation, Brainteaser
- 828. Chalkboard XOR Game - Hard - BrainteaserYou are given an array of integers nums represents the numbers written on a chalkboard. Alice and Bob take turns erasing exactly one number from the c... Topics: Array, Math, Bit Manipulation, Brainteaser, Game Theory
Related LeetCode Topics
- Array LeetCode Problems
- Backtracking LeetCode Problems
- Biconnected Component LeetCode Problems
- Binary Indexed Tree LeetCode Problems
- Binary Search LeetCode Problems
- Binary Search Tree LeetCode Problems
- Binary Tree LeetCode Problems
- Bit Manipulation LeetCode Problems
- Bitmask LeetCode Problems
- Breadth-First Search LeetCode Problems
- Bucket Sort LeetCode Problems
- Combinatorics LeetCode Problems
- Concurrency LeetCode Problems
- Counting LeetCode Problems
- Counting Sort LeetCode Problems
- Data Stream LeetCode Problems
- Database LeetCode Problems
- Depth-First Search LeetCode Problems
- Design LeetCode Problems
- Divide and Conquer LeetCode Problems