The last 2 test cases are failing and giving wrong answer, kindly help me out.
My code: https://ide.codingblocks.com/s/74171
2 Test cases failing
@Pranshu_gupta hey pranshu_gupta I have modified your code you can refer this code in your binary search function I made some changes and second thing is that the constraint is large so please choose data type as long long int new painter problem modified code