C1 Min Read LetuscrackonJune 11, 2024 Interchange largest and smallest values Given N distinct integer values, the program must swap the position of the largest and smallest integer values. Input Format:The first line…
C1 Min Read LetuscrackonJune 11, 2024 C – Function – Replace with Largest Number Given an integer array of size N as input, the program must replace every element of the array with the largest number that can be formed by…
Python1 Min Read LetuscrackonJune 10, 2024 Largest & Smallest Digits Difference A number N is passed as the input. The program must print the difference between the largest and the smallest digits in the number. Input…
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
C Java Python TCS CodeVita2 Min Read LetuscrackonJune 10, 2024 kth largest factor of N – TCS CodeVita A positive integer d is said to be a factor of another positive integer N if when N is divided by d, the remainder obtained is zero. For…
Java1 Min Read LetuscrackonJune 9, 2024 Subtract Largest Integer The program must accept N positive integers as the input. The program must subtract the integers from the largest integer among the N integers…
C1 Min Read LetuscrackonJune 9, 2024 Largest Possible Odd Integer The program must accept an integer N as the input. The program must print the largest possible odd integer using all the digits in N…
C Python1 Min Read LetuscrackonJune 7, 2024 N Integers – Kth Largest Integer The program must accept N integers and an integer K as the input. The program must print the Kth largest integer among the N integers as the…
C Python1 Min Read LetuscrackonJune 7, 2024 Positions of Smallest and Largest Please change variable names C++ : C: Python :
Python1 Min Read LetuscrackonJune 7, 2024 Sum of Digits – Largest Integer The program must accept N integers as the input. The program must print the sum of the digits of the largest integer among the N…