Python1 Min Read LetuscrackonJune 11, 2024 Matching Word – Replace ? The program must accept two string values P and S as input. The string P represents a pattern. The string S…
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…
C1 Min Read LetuscrackonJune 11, 2024 Array Rotate Forward – R times An array of N integers is passed as the input to the program and the program must rotate the elements R times in forward direction. Input…
C1 Min Read LetuscrackonJune 11, 2024 C – Function – Reverse In Groups Given an array of integers of size N and size of group R as input, the program must reverse and print every R elements in the array. Please…
C2 Min Read LetuscrackonJune 11, 2024 Maximum Sum in Array – M out of N Given N positive integers, find the maximum sum S that can be obtained by adding exactly M out of the N integers. The program must print the…
C1 Min Read LetuscrackonJune 11, 2024 Minimum Difference – Mark Pairs Manisha and Ranjani are in the same class and are friends. All students in the class write N exams. In order to motivate the students, the…
Java1 Min Read LetuscrackonJune 11, 2024 JAVA – Method Overloading – Adder The main method class Hello.java is given below. Please write the code for the class Adder.java so that the program prints…
C TCS CodeVita1 Min Read LetuscrackonJune 10, 2024 Stone Game – Remove Last – TCS CodeVita Alice and Bob are playing a game called “Stone Game”. Stone game is a two-player game. Let N be the total number of stones. In…
Python1 Min Read LetuscrackonJune 10, 2024 Matrix – Inside Numbers Sum A set of numbers forming a matrix N*N is passed as input. The program has to print the sum of numbers which are not along the edges. Input…
Java1 Min Read LetuscrackonJune 10, 2024 JAVA – Constructor – Sum and Product The main method in Hello.java is as shown below. Define the class Calculator.java by filling in the code so that the…