Cognizant OnCampus OA 2026 | Technical Coding Assessment | Complete Solutions & Tips | Array Partitioning & 1D Coordinate Distances | Spring Campus Assessment
Cognizant · Question · Posted Mar 2026
Question 1: Minimum Size Problem Statement: You have some boxes and the weights of these boxes are given in an integer array A of size N. You are required to transport all these boxes using K available trucks. All the boxes must be loaded onto the trucks, using the minimum possible capacity of each truck, in order to be transported. You have to ensure that the total weight of the boxes in each truck does not exceed the integer X, ...
The full answer & interview discussion are available to premium members.
Log in Create a free account