C Java Python1 Min Read LetuscrackonJune 12, 2024 Add Square of Each Digit to the Number Given a number as the input, compute the new number by adding the square of each of its digits to the original number. If the input is not a…
Python1 Min Read LetuscrackonJune 11, 2024 Rectangle or Square Vignesh is very much interested in Geometry and he was reading about Rectangles and Squares. He wanted a program which will print Rectangle or…
Python1 Min Read LetuscrackonJune 11, 2024 Square – Top Right Co-ordinates The bottom left point co-ordinates of a square are passed as input. The length of the side of the square is also passed as the input. The…
C1 Min Read LetuscrackonJune 11, 2024 Pattern – ZigZag Number Square Given an integer N as the input, print the pattern as given in the Example Input/Output section. Input Format: The first line contains N.…
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