BharatPe - SDE3 - Feb 2025 - Interview Experience
Anonymous User
651
Apr 02, 2025
Apr 02, 2025

Bharatpe:

1st round: DSA

Given Complexities of lectures like {10,20,30,40,50}
n is total no. of lectures, here n = 5
You can take upto n-1 lectures per day, not all
Needs to be completed in such a way, Total sum of max per day complexity should be minimum

Like let's suppose I'm taking lectures on Day 1 {10,20,30} then 30 is max
and next day {40,50} the max is 50
Total sum = 30 + 50 = 80

Like that we need to find minimum.. {10}, {20,30,40,50} = 10 + 50 = 60

Number of days were not given..

Couldn't resolve it ...
Rejected.

Comments (4)