Puzzle | 10 Balls in 5 Lines

__Puzzle__:

Given are ten balls, the task is to place these 10 balls in five lines such that each line contain exactly 4 balls.

__Solution__:

The solution to the above puzzle can be obtained as:

Skip to content

- Tutorials
- Algorithms
- Analysis of Algorithms
- Asymptotic Analysis
- Worst, Average and Best Cases
- Asymptotic Notations
- Little o and little omega notations
- Lower and Upper Bound Theory
- Analysis of Loops
- Solving Recurrences
- Amortized Analysis
- What does 'Space Complexity' mean ?
- Pseudo-polynomial Algorithms
- Polynomial Time Approximation Scheme
- A Time Complexity Question

- Searching Algorithms
- Sorting Algorithms
- Graph Algorithms
- Pattern Searching
- Geometric Algorithms
- Mathematical
- Randomized Algorithms
- Greedy Algorithms
- Dynamic Programming
- Divide and Conquer
- Backtracking
- Branch and Bound
- All Algorithms

- Analysis of Algorithms
- Data Structures
- Languages
- Interview Corner
- GATE
- ISRO CS
- UGC NET CS
- CS Subjects
- Web Technologies
- School Learning
- School Programming
- Mathematics
- Maths Notes (Class 8-11)
- NCERT Solutions
- RD Sharma Solutions

- Algorithms
- Student
- Jobs
- Courses

Improve Article

Puzzle | 10 Balls in 5 Lines

__Puzzle__:

Given are ten balls, the task is to place these 10 balls in five lines such that each line contain exactly 4 balls.

__Solution__:

The solution to the above puzzle can be obtained as:

Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.