What the post says
#day76 of #1001daysofcode" "Today did a single hard question which was also the problem of the day, I solved it after reading the solutions of many other people." "" "Thanks to the person who originally solved the question." "" "Leetcode:" "2141. Maximum Running Time of N Computers" "" "The approach basically is that if the average of the batteries run time is greater than the last element of the batteries." "" "The runtime will be the average of all batteries." "" "As the outlier is not in the last of the batteries, the batteries can switch with each other and run which is each to the average." "" "Else,we will continue to remove the last element till the average becomes greater than the last element." "" "#1001daysofcode #dsa #python #java #coding #geeksforgeeks #notion #programming #daily #cpp #learning
Follow the challenge
Browse the Days of Code journal for selected updates. Shivam's projects show where regular practice connects to shipped software.