C1 Min Read LetuscrackonJune 11, 2024 Traverse Square Matrix – Spiral Clockwise A square matrix of size N*N is provided. The program must traverse the matrix spirally and print the elements in a single line. Input…
C1 Min Read LetuscrackonJune 11, 2024 Max Same Letter Square Size Certain kids were playing a game in which they would draw a N*N matrix and would fill in a letter from A to Z in a given cell based on certain…
Python1 Min Read LetuscrackonJune 11, 2024 Area of a square The perimeter P of a square is passed as the input. The program must print the area of the square. Input Format:The first line denotes the…
C Dynamic Programming Python TCS CodeVita2 Min Read LetuscrackonJune 10, 2024 Square Free Numbers – TCS CodeVita The program must accept an integer N as the input. The program must print the number of square free numbers that divide the given…
Python1 Min Read LetuscrackonJune 10, 2024 Check for Rectangle or Square The length L and breadth B of a rectangle is passed as input. If L is equal to B then the program must print “square”. Else it…
C Dynamic Programming1 Min Read LetuscrackonJune 10, 2024 Largest Square Sub Matrix with 1s ExampleInput/Output 1:Input:7 51 1 1 0 11 1 0 1 00 1 1 1 11 1 1 1 11 1 1 1 11 1 1 1 10 0 0 0 0 Output:4
C1 Min Read LetuscrackonJune 8, 2024 Square Matrix – Corner Elements Sum A square matrix of size N*N is passed as input. The program must calculateand print the sum of the elements in the corners. Example 1:…
Python2 Min Read LetuscrackonJune 7, 2024 Non-overlapping Square Submatrices The program must accept an integer matrix of size RxC as the input. The program must print all possible non-overlapping square…
Python2 Min Read LetuscrackonJune 6, 2024 Largest Square Matrix – Words Largest Square Matrix – Words: The program must accept a string S containing multiple words as the input. The program must…
C Java Kickstart Python1 Min Read LetuscrackonJune 6, 2024 Square – Format Print The program must print a number and print the square as per the format given in the Example Input/Output Section. Example Input/Output…