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? Solution: start from (A) upper corner of the right side to (B) bottom corner of the left side and then B -> C extend some extra line from point C then draw a line from C to D (here you understand the purpose of extended line) and then draw new line from D to B. In this way, you are able to draw 4 straight lines without lifting pen and visited all 9 dots. Comment More infoAdvertise with us 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 Like