CSE Blog
Math, CS and quant puzzles for interview preparation - 300 classic brainteasers with solutions, sorted by topic and difficulty.
- Posts
- 303 from 26 Jun 2008 to 9 Oct 2026
- Posting
- now and then (3 in the last year)
- Kind
- personal blog
- Feed
- https://pratikpoddarcse.blogspot.com/feeds/posts/default
2026 3
2017 2
2016 2
2015 7
2014 19
- Maximum Number of Collinear Points
- Mathematics of SET game
- Broken Coffee Machine Puzzle: Expected Presses to Fill the Cup
- Pebble Placement Puzzle 2
- Pebble Placement Puzzle 1
- Diminishing Differences Puzzle
- Balancing Act Puzzle
- "Flawless Harmony" Puzzle
- Minimum sum of numbers in an array
- Caterer's Problem
- 3D Tic Tac Toe Puzzle: Count the Winning Lines in a 3x3x3 Cube
- Mad Robot Puzzle
- Social Network Friendship Paradox
- Expected length of Last Straw - Breaking the back of a camel
- Cards on a Square Turntable
- Cut the Polygon Puzzle - the solution will make you smile
- Estimate Pi Using Dice: A Quant Interview Puzzle
- (2n choose n) is never a perfect power
- Frobenius Coin Problem: Largest Amount You Cannot Pay with $a and $b
2013 41
- Determinant of Matrix (17-11)
- Open Ended Search Problem
- Picking K elements randomly
- Technical Interview Brain Teaser - IBM Ponder This - Neighbour Configuration
- Expected Flips Until HHTHHTT: Two-Coin Tossing Puzzle
- Calculus Limit Puzzle
- Weighing Problem - Discrete Mathematics Puzzle
- Discrete Mathematics Problem - Grouping Students
- Prime Power Math Puzzle
- Separate Odd and Even Numbers in an Array (Algorithm Puzzle)
- Chess 5 Piece Puzzle: Place the King, Queen, Rook, Bishop and Knight
- Number of Shortest Paths in an n x m Grid (Combinatorics Puzzle)
- Divisibility Problem
- Find Fixed Point (x[i]=i) in an Array
- Walking Ant Problem - Part 2
- Guide to Wall Street Quant Jobs for IITians
- Minimum Point in a Rotated Sorted Array
- Probability Puzzle: Expected Number of Expression Evaluations
- Combinatorics + Game Theory Puzzle
- Self Referential Problem - from "What would Martin Gardner Tweet"
- Edit Distance Problem
- Math Game of Zero String
- Math in Movies
- 5 Books for Quantitative Analyst Beginners
- Nine Digit Number - Math Puzzle
- Matrix Puzzle - Math Puzzle
- Art of Puzzle Solving
- Equations Puzzle
- Candy Game - Math Puzzle
- Black and White Squares Puzzle
- Penny Roll Puzzle
- Integer Points Puzzle: 5 Lattice Points Always Hide a Third
- 100-Sided Die Game: Take the Roll or Pay $1 to Re-roll (Jane Street)
- World Series Betting Puzzle: End Exactly $100 Up or Down
- Simple Divisor Problem - Math Puzzle
- Mad Hat Party
- Broken Clock Puzzle
- Probability Puzzle: Guess Position of Card
- Determinant of Binary Matrix
- Evenly Spaced Ones in Binary String
- Fermat's Last Theorem Puzzle: The 10-Year-Old Who Disproved the Claim
2012 39
- Romanian Informatics Olympiad - Modified Huffman Encoding
- Predict Your Partner's Coin: A 3-Player Strategy Puzzle
- Pizza Distribution Puzzle
- Most Popular Math Puzzles in 2012
- Snakes and Ladders Optimization
- Geometry Contruction - Bisect Areas of 2 Triangles
- Spy Control Problem - Peter Winkler
- Hanging Picture Puzzle
- Multilingual Hedge Fund - Combinatorics Puzzle
- European Peg Solitaire Solvability
- Geometry Puzzle: Crush the Rebellion
- Geometry Problem : Line of Sight
- Sam Loyd Puzzle Solvability
- Math Olympiad Problem - Milk Distribution
- Quick Probability Questions for Interviews
- Geometry Puzzle: Center of Square in Circle
- Math Olympiad Problem : Overlapping Coins
- Number of 1s in 2's complement representation
- Hourglass Puzzle: Measure 9 Minutes with 4- and 7-Minute Hourglasses
- Strategy Game - Similar to Nim
- USA Maths Olympiad Problem - 200th Puzzle
- IQ Measurement Puzzle - Statistics Problem
- Inequality Problem
- Brownian Motion in Circles Puzzle
- Arithmetic Puzzle: Broken Calculator
- IBM Ponder This July 2012 - Colouring Balls
- Pairwise Product Set Cardinality
- Why Flights Don't Fly Straight: New York to Mumbai Great Circle Puzzle
- Permutations and Combinations Puzzle: Cube with Equal Faces
- Scheduling Problem
- Original Puzzle: Pattern Lock - Combinatorics Puzzle - Number of Possible Passwords
- Maximum Family of Subsets Intersecting in Exactly One Element
- Lion and Man in a Circular Cage: Can the Lion Catch the Tamer?
- Algorithm Puzzle: Triplets in Array
- Original Problem : ATM Money Withdrawal Puzzle
- Lazy Walking Strategy Puzzle
- Number Board Puzzle: Sum of Colours
- Pile Puzzle
- Digit Permutation Puzzle
2011 43
- Number of digits in 125^100
- Array Problems - Contiguous Sum and Distinct Elements
- Crossing the Road
- Shortest Curve dividing Equilateral Triangle
- Matrix Saddle Points
- Rubik's Cube
- Linked List Delete
- Numbers on a circle - Minimum sum of consecutive differences
- 21 Problems in 21 Days left for Placements
- Guess 3 numbers
- Scaling a Square
- Divisibility of 111...1111
- Sphagetti Breakfast
- Distinct numbers in a sample draw
- Function Inner Product
- Difference between foo(void) and foo()
- C code 32 bit vs 64 bit
- C++ Macro Concatenation
- Arrange in a Sequence
- Football Board
- Sacred Right Pan - IMO 2011 Problem
- Increasing Sequence in Dice
- Expectation of Max Frequency
- Coin Chain Reaction
- Moscow Math Olympiad Problems
- Coloured Run of Cards
- Bad BarCode
- Wrong Solution
- Need for Needles
- Smallest Number in Decreasing Sequence
- Keynesian beauty contest
- Dividing a Plane
- King's Poisonous Wine II: 500 Barrels, 4 Prisoners, 48 Hours
- Coin Toss Bankruptcy
- Derangement - Complete FAIL!
- Equal Heads and Tails: The Expected Number of Tosses (Coin Puzzle)
- Comparison without relational operators
- Sum of 2001 powers of digits
- Expectation of 2^(Cycle Length)
- CMU Puzzle Toad: Abduction
- Car Problem
- Birthday Game Puzzle: Where to Stand in Line to Win a Free Ticket
- Expected number of draws
2010 80
- Water Jug Problem
- Equal zeroes and ones
- Locks and Switches
- Order of cards
- Stick Broken Into Three Pieces
- The Social Network (2010) - FaceMash Algorithm
- Probability of Grade A or B
- Sorted arrays
- Coin Tossing - Lucky Dealer
- Optimal Trading Execution
- Number of Colour Changes
- Random Walk around Square
- Two creepers climbing a tree
- Number of Rounds of Derangements
- Baseball Party
- Equilateral Triangle Division
- Painting Coloured Balls
- Senators and Graph Theory: Committee Splitting with 3 Enemies Each
- Coin Balancing
- Randomized Ice Cream
- Prime Number Strategy Game
- Number Games
- Equal numbers in a circle
- Conway's Soldiers (CheckerBoard Unreachable Line)
- Magic Money Machine
- Number of Sons
- Puzzle on Sorting
- Hats and Rooms
- Coin conundrum
- Differing views
- Coin Sequence Game
- Cube in a sphere
- Russian Coins
- Tip the Balance
- Mathematics of Housie/Tambola
- City Planning
- Veit Elser’s Formidable 14
- Another Hat Problem
- Oleg Kryzhanovsky’s Problem - Coin Sequence
- Weighing Puzzle: 13 Piles of Coins, One Counterfeit Pile
- Sleeping Beauty Paradox
- Street Watch
- Unexpectedly Great Expections
- 100 Locomotives Problem
- Sink the Submarine
- Traffic Jam
- Real Expensive Pills
- Perfect Powers: Print All m^n up to N in Order (Programming Puzzle)
- Sweet Heart Mix Tape
- Coin Weighing Problem
- Drunk Guests
- Pebble Piles
- Asking a girl out
- Checkers Problem
- Invert the Cups
- Fair Hat Game
- Red vs Black cards - Expected payoff
- Three NOT Gates from Two NOT Gates
- Hungry Lion
- IBM Ponder This January 2010 Puzzle
- Math Olympiad Problems
- Brave Warrior
- Bottom Dollar
- Give and Take
- Horse Race
- Hats in a circle
- Homo paradox
- Duplicate Integer
- Cap Puzzle (Infinite version)
- Indian Sudoku Championship 2010
- Card Shuffle
- Two envelopes Problem
- Dont roll more
- Correct Letters
- Coupon Collector Problem
- Infected Chessboard
- Chessboard Circle
- Capturing a pirate ship
- Threaded Pins
- Finding a Hermit: The Five Holes in a Line Puzzle
2009 63
- Top Card
- Uniform Candy Distribution
- Gaadi chalao
- Fate of Ships
- The Best Horse
- Kirkman's schoolgirl problem
- Empty Bucket
- Catch me if you can?
- Dividing gold into parts
- Infinity Problem
- Ant Collision
- Weird Number Sequence
- Number of Locks and Keys
- Expected Number of HH
- Generate a Uniform Random Point in a Circle (Interview Puzzle)
- Break the sticks
- Ants on a Cube
- Placements and Puzzles!!!
- Nearest Point problem
- Blind flipping
- Missing Digit
- Polya's Urn Problem: Expected Balls in the Smaller Urn
- Flipping Bits in a Matrix
- Lets Call 50
- Minimum and Maximum
- Weighing problems
- Choose the maximum of two number
- Cyclic Strings
- Four Ants - HC Verma
- Chicken Nuggets
- IBM Ponder This November Challenge
- Wikipedia Links for Algorithms and Probability
- No division operator and O(n)
- Another Coin Problem
- Coins Puzzle
- IBM Ponder This Puzzle
- Technician from IIT
- King's Poisonous Wine
- Find your number
- Another Hat Puzzle
- See a car
- Tukde tukde
- Expected Tosses for Consecutive Heads: 2 Heads vs 3 Heads Puzzle
- Expected Value
- Mean minimum distance for N random points on a one-dimensional line
- 9 balls
- Bulb Puzzle
- Walking Ants
- Losing at Dice
- Shoot me!!
- Bol Baby Bol
- 25 Horses, 5 Tracks: Find the Top 3 in the Fewest Races
- Semi-circle covering n points : Puzzle
- The King's salary
- Josephus Problem - Puzzle
- Five Thieves and Bounty
- Game of Two
- Cap Puzzle
- Puzzle: Working Computer
- Puzzle: What's the number on my Hat?
- India and Open Source Software Part-2
- Amazing Boy Girl Paradox
- Open Source is a Must for India