C Cognizant1 Min Read LetuscrackonJune 11, 2024 getarraysum Logical Error – CTS PATTERN You can click on Run anytime to check the compilation/execution status of the program. You can use printf to debug your code. The submitted…
C1 Min Read LetuscrackonJune 11, 2024 Structure – Item with Maximum Price N items are passed as the input along with id, name and price. All the N items will have distinct price. Print the item details which has…
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…