Skip to content

Opening book details…

Can I read InfyTQ HackwithInfy Q&A Preparation on EtoBox?

InfyTQ HackwithInfy Q&A Preparation by Nilesh is a document available to read on EtoBox.

What is InfyTQ HackwithInfy Q&A Preparation about?

This document provides sample code solutions in Python and Java to find the minimum number that occurs consecutively three times in either a row, column, or diagonal of a two-dimensional matrix. It explains taking user input of matrix dimensions m and n, creating an m x n matrix, and checking each element to see if it equals the next three elements in its row, column, or diagonal. If any matching numbers are found, the minimum one is printed, or -1 is printed if none are found.

Author
Nilesh
Language
EN