PROBLEM COLLECTION
Test your skills with challenging problems in reasoning, mathematics, and coding
Back to HomeReasoning Problems
These problems test various aspects of reasoning and are used to evaluate AI model capabilities.
You are facing north and A rectangular tank is filled with water. Each side The West and East phases of the tank are painted to look like an island. A small toy boat floats in the tank. On the boat is a small figurine which is facing north. You lift the right side of the tank. From the point of view of the figurine Which island appears to rise. The West side, East Side or Both or None.
Answer: East side
b_ab_a_a_ba_ Fill with correct alphabets. Such that it forms a repeating pattern. Pick from the options which is correct.
(a) bbaab (b) aabaa (c) bbabb (d) babab
Answer: (b) aabaa
I have plotted points on a coordinate plane and connected them in a specific order to form letters. These letters together spell out a word. Below, I will provide the coordinates of the points and indicate which points are connected using a specific symbol. The points belonging to each letter will be enclosed within curly brackets {} to indicate they form a single letter. Your task is to identify each letter and determine the complete word.
Notation:
Points are given as ordered pairs: (x, y).
Connections between points are denoted by → (e.g., (2,3) → (4,3) means these two points are connected by a line segment).
Each letter's points are enclosed in curly brackets {(x1,y1), (x2,y2), ...}.
A comma (,) within a letter's set indicates a new, separate line segment within that letter.
Here are the points and how they are connected:
{(0,1)→(0,2)→(1,3)→(2,2)→(2,1), (0,2)→(2,2)},
{(3,1)→(3,3)→(4,3)->(4,2)->(3,2), (3,2)→(4,1)},
{(5,3)→(7,3), (6,1)→(6,3)},
{(8,1)→(8,3)},
{(9,1)→(9,3)→(10,3), (9,2)→(10,2)},
{(11,1)→(11,3)},
{(13,1)→(12,1)→(12,3)→(13,3)},
{(14,1)→(14,3)},
{(15,1)→(15,2)→(16,3)→(17,2)→(17,1), (15,2)→(17,2)},
{(19,1)→(18,1)->(18,3)}
Solve and tell me what is the word.
Answer: ARTIFICIAL
The tuples represents 3×3 grids. Each tuple is ordered as: (a₁₁, a₁₂, a₁₃, a₂₁, a₂₂, a₂₃, a₃₁, a₃₂, a₃₃), where aᵢⱼ is the value in the i-th row and j-th column.
Given:
(1,0,1,0,0,0,1,0,1) ; (0,0,0,0,1,0,0,0,0) = (0,1,0,1,0,1,0,1,0)
(0,0,1,0,1,0,1,0,0) ; (0,0,0,0,0,1,0,1,1) = (1,1,0,1,0,0,0,0,0)
Task: Using the same rules, compute:
(1,1,0,1,0,1,0,1,1) ; (0,0,1,0,0,0,1,0,0)
Provide the answer as a tuple in grid order.
Answer: (0,0,0,0,1,0,0,0,0)
Eight friends P,Q,R,S,T,V,W and Y are sitting around a square table in such a way that four of them sit at four corners of the square table while four of them sit in the middle of each of the four sides. The ones who sit at the four corners face the centre while those who sit in the middle of the sides face outside.
S sits third to the right of P. P faces the centre. Y is not an immediate neighbor of P or S. T sits third to the right of R, who does not sit in the middle of any of the sides and also R is not an immediate neighbor of Y. Only one person sits between P and V. Q is not an immediate neighbor of V.
Now. If all the persons are made to sit in the alphabetic order in clockwise direction starting from P, the positions of how many (excluding P) will remain unchanged as compared to their original seating positions?
Answer: Q (other than P)
Eight friends – A, B, C, D, E, F, G, and H – are to be seated around a square table. The seats are numbered 1 to 8 in a clockwise direction, starting with seat 1 at the top left corner of the table. Those in seats 1, 3, 5, and 7 (the corner seats) face the center of the table. Those in seats 2, 4, 6, and 8 (the mid-side seats) face outwards.
The seating arrangement must also satisfy the following conditions:
1. G sits at seat 1.
2. Both of D's immediate neighbors face away from the center.
3. Both of B's immediate neighbors face the center.
4. F sits to the immediate right hand side of D.
5. H sits third to the left of E.
6. B sits second to the right of F.
7. A and F sit opposite each other.
8. D does not sit in the bottom seats.
Two seating arrangements are considered distinct only if at least one person has a different person sitting immediately to their left or right.
Based on this, how many distinct seating arrangements are possible? For each possible number of seating arrangements, list the position of each friend in the arrangement, starting from seat 1 and proceeding clockwise to seat 8.
a) 1 b) 2 c) 3 d) 4 e) 5
Answer: (b) 2
Arrangement 1: GFDBHACE
Arrangement 2: GFDBEACH
Sixty-four players seeded from seed 1 to seed 64 participated in a knock-out tennis tournament. Seed 1 is the highest seed and seed 64 is the lowest seed. The tournament would be played in six rounds i.e., first round, second round, third round, quarterfinals, semi finals and final. In the first round, the player with the highest seed (i.e., 1) would play with the player with the lowest seed (i.e., 64) which is designated Match No.1.
Similarly, the player with the second highest seed (i.e., 2) would play with the player with the second lowest seed (i.e., 63), which is designated Match No.2 and so on. In the second round, the winner of the Match No.1 of the first round would play with the winner of the Match No.32 of the first round and this match is designated Match No.1 of the second round.
If one of the matches was between the players seeded 23 and 46, then one of the matches in the tournament can be between players seeded
(a)9 and 13
(b)6 and 18
(c)5 and 51
(d)17 and 15
(e)None of these.
Answer: (a) 9 and 13
Nine persons namely P, Q, R, S, T, U, V, W and X were sitting in a linear row facing towards the South direction and were wearing different jersey numbers viz. 13, 18, 22, 25, 27, 32, 34, 36 and 40 not necessarily in the same order. The distance between each person is a consecutive multiple of '4m' from the left end. Note: The distance between any adjacent pair is not more than 35 m. The person wearing the Jersey numbered as 13 was at a distance of 40 m from the person wearing Jersey number 18. V was sitting to the left of the person who was wearing a Jersey numbered with a multiple of 17. The distance between S and X was 60 m and neither of them were sitting at any end. The distance between P and X is double the distance between S and U. Three persons were sitting between Q and the person wearing a jersey numbered in the multiple of 11. The person whose Jersey was numbered of a cube of a number was having one person between him and W. W was wearing an odd numbered Jersey. The person wearing the Jersey which was a Square of a number was sitting adjacent to P. More than three persons were sitting to the left of X. The Jersey number of S is less than that the Jersey number of R. R was not sitting at any end of the row. The person wearing the Jersey which was numbered as a square of a number was immediately right of the person whose Jersey was numbered half of it. The person wearing Jersey number 32 was sitting to the right of R. One who was wearing Jersey no. 22 was sitting adjacent to X.
Solve the problem and Tell me which person is wearing which jersey number. In Alphabetic order
Answer:
P = 22
Q = 36
R = 40
S = 34
T = 32
U = 27
V = 18
W = 13
X = 25
Twelve persons A, C, E, G, I, K, M, O, Q, S, U and W are working in the Indian Navy in different designations such as Admiral, Vice Admiral, Rear Admiral, Commodore, Captain, Commander, Lieutenant, Sub Lieutenant, Master Chief Petty Officer (MCPO), Chief Petty Officer (CPO), Petty Officer, Leading Seaman (LS) and Seaman.
Note: The designations are given in decreasing order, with Admiral being the senior most position and Seaman being the junior most position. There is no person designated at one post.
Constraints:
- K is junior to Vice admiral but senior to Lieutenant.
- W is two positions junior to K and senior to Sub Lieutenant.
- Only four persons are designated between M and W where M is neither Admiral nor Leading Seaman.
- One of the designations is vacant which is senior to Petty officer but junior to Captain.
- U is three positions junior to the vacant designation which is not Lieutenant.
- The number of persons junior to E is three less than the number of persons senior to U.
- E is neither Master Chief Petty Officer nor Commodore.
- Only six persons are designated between A and S who is four positions senior to the vacant designation.
- The number of designations between C and I is same as the number of designations between O and Q.
- Only one person is designated between Q and U.
- O is immediately junior to G.
- C is not junior to Sub Lieutenant.
Find who is in which post and give the answer as a table with two columns: Designation and Person (in decreasing order of designation).
Answer:
Admiral = G
Vice Admiral = O
Rear Admiral = C
Commodore = S
Captain = K
Commander = Vacant
Lieutenant = W
Sub Lieutenant = A
MCPO = U
CPO = I
Petty Officer = Q
Leading Seaman = M
Seaman = E
Math Problems
Challenge yourself with these mathematical problems ranging from algebra to calculus.
Rectangular Boxes and Spheres
Let $\mathcal{B}$ be the set of rectangular boxes with surface area 54 and volume 23. Let r be the radius of the smallest sphere that can contain each of the rectangular boxes that are elements of $\mathcal{B}$. The value of r^2 can be written as $\frac{p}{q}$, where p and q are relatively prime positive integers. Find p+q.
Answer: 721
Growing Balance Calculator
I have an initial balance of \$100,000 and I earn \$15,000 per month for every \$100,000 in my balance. As my balance grows my earnings increase in steps. Specifically each time my balance increases by \$100,000 my monthly earnings increase by \$15,000. For example: With a balance of \$100,000 I earn \$15,000 per month. Once my balance reaches \$200,000 I start earning \$30,000 per month. When my balance reaches \$300,000 I earn \$45,000 per month and so on. Assuming my balance grows month by month based on these earnings how much will I have after 3 years (36 months)?
Answer: \$9,475,000
Shaded Circle Segment
A circle is divided into four sections by three vertical lines. The diameter of the circle is split into four equal segments, each of length 'r'. The rightmost section is shaded. What percentage of the whole circle's area is represented by the shaded region?
Answer: 19.55%
Tetrahedron Interior Point
Let ABCD be a tetrahedron such that AB = CD = √41, AC = BD = √80, and BC = AD = √89. There exists a point I inside the tetrahedron such that the distances from I to each of the faces of the tetrahedron are all equal. This distance can be written in the form (m√n) / p, where m, n, and p are positive integers, m and p are relatively prime, and n is not divisible by the square of any prime. Find m + n + p.
Answer: 104
Coding Problems
Test your programming skills with these algorithmic and data structure challenges.
Snake Game with PyQt5
Write a snake game in Python using PyQt5. Implement the classic Snake gameplay with movement controls, score tracking, and game over conditions.
CSS Dragon Animation
Code a dragon using HTML, CSS, and JavaScript. Show a side view of the dragon and create your best implementation in a single code file. Focus on animation and visual appeal.
Super Mario in Pure Web Tech
Build the absolute best implementation of a Super Mario game in a webpage without using any external assets, all in one single code file. Include movement, jumping mechanics, enemies, and obstacles.
Physics-Based Letter Animation
Create a JavaScript animation of falling letters with realistic physics. The letters should:
- Appear randomly at the top of the screen with varying sizes
- Fall under Earth's gravity (9.8 m/s²)
- Have collision detection based on their actual letter shapes
- Interact with other letters, ground, and screen boundaries
- Have density properties similar to water
- Dynamically adapt to screen size changes
- Display on a dark background
- Include a large ball as an obstruction that can be moved with the cursor
Interactive Mascot in React
Create a single React webpage with a mascot in the middle whose eyes and expressions follow the movement of the cursor as if watching it. The mascot should make different expressions when the user clicks on options or interacts with the page. No external assets should be used.
Bouncing Balls Simulation
Write a Python code for a hollow circle with an opening. Place two balls inside that bounce against the walls and collide with each other. Each time a ball exits through the opening, two new balls should appear inside the circle. Include distinct sound effects for wall hits, ball collisions, and exits.
Earth Rotation Simulation
Design a Python program that simulates Earth's rotation with emphasis on creativity, realism, and smooth performance. Generate all visual elements programmatically without external images. Requirements:
- Continuous Rotation – Simulate Earth rotating on its axis
- Procedural Generation – Create dynamic representations of landmasses, oceans, and clouds
- Day-Night Cycle – Include effects that simulate daylight and darkness
- Creative Enhancements – Add atmospheric effects, space elements, or interactive features
- Optimization – Ensure smooth, responsive animation
Advanced Pinball Game
Develop a fully-featured pinball game in Python without external assets or dependencies. Include:
- 3D-like visuals with lighting, shading, and perspective
- Sophisticated ball physics (gravity, velocity, friction, bounces)
- Fluid flipper mechanics controlled by keyboard input
- Dynamic bumpers, ramps, and obstacles
- High-performance collision handling
- Real-time scoring with visual and audio feedback
- Game over and restart mechanics
- Polished UI and effects
Pac-Man Without External Files
Create a state-of-the-art Pac-Man game in Python with no external files for assets. All visuals and sounds must be generated programmatically. Include:
- Core mechanics: movement, ghost AI, power-ups, scoring, win/lose conditions
- Programmatically rendered maze with walls, pellets, and characters
- Ghost behaviors (chase, scatter, etc.) as in the original game
- Programmatically generated visual elements and sound effects
Music Equalizer
Build a PyQt5 Python application that provides real-time visualization of audio selected by the user, presented through a visually engaging GUI interface.
Key Features:
- User Input:
- Allow users to select an audio file (mp3, wav, etc.) via a PyQt5 GUI.
- Real-Time Audio Visualization:
- Create an advanced, creative, and visually appealing real-time audio visualizer that fills the entire GUI window (16:9 aspect ratio, minimum resolution of 1280x720).
- The visualizer should primarily react to significant audio elements, focusing on noticeable peaks or events in the audio track (such as sounds or beats that exceed the average volume), rather than reacting uniformly to every subtle audio detail.
- The visual style and implementation should be innovative, appealing, and designed to impress users who are typically hard to please.
- Interactive Playback:
- Provide standard audio playback controls within the PyQt5 GUI (play, pause, stop).
Technical Considerations:
- Utilize PyQt5 for the GUI interface.
- Employ appropriate Python libraries for real-time audio processing (e.g., librosa, PyDub) and graphical rendering.
- Ensure smooth synchronization between audio playback and visual response.
Rotating Maze
Create an interactive rotating maze puzzle game using only HTML, CSS, and JavaScript with the following specifications:
- HTML: Use a single HTML file with a 600x600 pixels canvas for game rendering and a horizontal slider input (-180 to +180 degrees) to control rotation.
- Maze Specifications: Circular maze design with at least 3 concentric rings, one entry point at the center, and one exit point at the outermost ring.
- Ball: A small circle that starts at the center of the maze and responds realistically to physics including gravity, acceleration, and collisions.
- Rotation Mechanics: Maze rotation controlled smoothly via slider input, which directly changes gravity's direction.
- Interaction & Physics: Implement realistic gravity physics, accurate collision detection, and smooth rotation animations.
- Win Condition: Display a victory message when the ball reaches the maze's outermost ring exit.
- Visual Design: Clear, simple, and intuitive visual design with contrasting colors for good visibility.
- Code Structure: Entire implementation in a single HTML file with modular JavaScript functions for maze drawing, ball movement, collision detection, rotation handling, and game initialization.
Scrolling Solar System
Create a stunning and detailed single-page HTML webpage that utilizes a cinematic "scrollytelling" style to take the user on an immersive journey through the Solar System.
Key Requirements:
- Each celestial body (Sun → Mercury → Venus → Earth → Mars → Jupiter → Saturn → Uranus → Neptune) must have its own interactive, full-screen section visible during scrolling.
- Use smooth scroll-triggered animations via GSAP (ScrollTrigger) CDN for creating dynamic transitions (zoom-ins, parallax backgrounds, transitions between planets, text fade-ins, particle animations) so users truly feel they're traveling through space.
- Provide meaningful educational content about each planet: prominently display the planet name, include a high-quality visual representation, and provide informative facts that are scientifically accurate and compelling.
- Include modern, responsive CSS styling with dark, cosmic, futuristic themes: dark space-themed backgrounds, moving stars or particles, and visually appealing text and design elements.
- Provide original, thoughtfully prepared code within just one isolated HTML file, entirely self-contained.
- Maximize the informationally rich, visually engaging, and cinematic feel of the page while remaining organized and optimized for user scrolling experience.
The final output must be a single complete HTML file containing inline CSS and JavaScript, ensuring the webpage is instantly runnable, visually rich, interactive, educational, and sophisticated.
Never Miss An Update!
📣 Subscribe to my YouTube channel for the latest AI insights and problem-solving techniques!
Subscribe Now