VOOZH about

URL: https://www.geeksforgeeks.org/aptitude/puzzle-draw-4-straight-line-33-matrix-9-dots/

⇱ Puzzle | Draw 4 straight line in 3*3 matrix (9 dots) - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Puzzle | Draw 4 straight line in 3*3 matrix (9 dots)

Last Updated : 18 Jan, 2023
You have given 9 dots in the form of 2d matrix 3 * 3. Your task is to draw four straight lines without lifting the pen and no dot should be left untouched. How will you solve this task? 👁 start

Solution: start from (A) upper corner of the right side to (B) bottom corner of the left side 👁 step1
and then B -> C extend some extra line from point C 👁 step3
then draw a line from C to D (here you understand the purpose of extended line) 👁 step4
and then draw new line from D to B. 👁 step5
In this way, you are able to draw 4 straight lines without lifting pen and visited all 9 dots.
Comment
Article Tags: