Amazon Coding Round - Oncampus 2022

Amazon · Question · Posted Jul 2022

Problem 1 I don't remember the question but it was related to one hole kadane.   Problem 2 There are infinite number of parcels with their id starting from 1 and each parcels having a unique id. And weight of each parcel is equal to their id number. A truck contains n parcels, find the minimum extra weight to be added such that number of parcels increases to k.

The full answer & interview discussion are available to premium members.

Log in Create a free account