Working on this problem! Have tried binary search solution, but few test cases failed. This problem seems to me like reverse Knapsack. Will figure out the solution soon and share it. If you got the solution first, share it with us too :)
Hi @maneeta808, It is a binary search problem. Sure will share the solution and explanation video with you soon. Can you share the link of the problem statement? or the forum where the problem is posted? It will be helpful for me to test the code against all test cases and provide you with correct solution. Thanks :)
Working on this problem! Have tried binary search solution, but few test cases failed. This problem seems to me like reverse Knapsack. Will figure out the solution soon and share it. If you got the solution first, share it with us too :)
sure here is the link https://my.newtonschool.co/playground/code/h2xbm1bdxh/ thanks!
Hi @maneeta808, It is a binary search problem. Sure will share the solution and explanation video with you soon. Can you share the link of the problem statement? or the forum where the problem is posted? It will be helpful for me to test the code against all test cases and provide you with correct solution. Thanks :)