Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Puzzles
  • Funny Riddles
  • Interesting Riddles
  • Mathematical Riddles
  • Animal Riddles
  • Mathematical Puzzles
  • Rubik's Cube
  • Aptitude-Puzzles
  • Top 100 Puzzles
  • Puzzles Quiz
Open In App
Next Article:
Puzzle | Draw 4 straight line in 3*3 matrix (9 dots)
Next article icon

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

Last Updated : 18 Jan, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report
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.

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

R

R_Raj
Improve
Article Tags :
  • Puzzles
  • Shape Puzzles
Practice Tags :
  • Puzzles

Similar Reads

    Puzzle | Connect 9 circles each arranged at center of a Matrix using 3 straight lines
    Consider 9 circles each arranged at the center of cells of a 2-D matrix of shape 3*3. Draw 3 straight lines without removing pen from paper such that each of the 9 circles is in contact with at least one line. Solution: A similar problem is present here Connect 9 dots using 4 lines. The difference f
    1 min read
    TCS DIGITAL PUZZLE | Lateral Thinking 2
    Lateral thinking is the most interesting test module of TCS digital hiring process. Problem: Join all nine dots by drawing minimum number of straight lines. The straight lines must be continuous i.e. one must not lift the pen from the paper once start drawing. Before moving towards the solution it i
    1 min read
    Solving Sudoku using Bitwise Algorithm
    Given a partially filled 9×9 matrix, digits (from 1 to 9) must be assigned to the empty cells so that every row, column, and submatrix of size 3×3 contains exactly one instance of the digits from 1 to 9. Recommended: Please solve it on “PRACTICE ” first, before moving on to the solution. The Pure ba
    13 min read
    C++ Program to Print the Pattern 'G"
    In this article, we will learn how to print the pattern G using stars and white spaces. Given a number n, we will write a program to print the pattern G over n lines or rows.Examples: Input : 7 Output : *** * * * *** * * * * *** Input : 9 Output : ***** * * * * *** * * * * * * ***** In this program,
    2 min read
    Path to reach border cells from a given cell in a 2D Grid without crossing specially marked cells
    Given a matrix of dimensions N*M consisting of characters 'M', '#', '.' and only a single instance of 'A'. The task is to print any one path from the cell having value A to any border cell of the matrix according to the following rules: Every second the path from cell 'A' can move in all four adjace
    15+ min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences