https://hack.codingblocks.com/app/practice/3/715/problem
how we can apply pigeon hole approach in this question.
i am applying brute force but getting TLE. please help to solve this question because i am not getting the approach to solve this
Not getting the apprach
hello @shivamgoel150
prateek bhaiya has covered this problem in depth ->
feel free to ask ,if u r still left with any doubt
i understand the method of pigeon hole but in this question we can not apply pigeon hole approach so how to solve this question
did u check the video , that i shared,
prateek bhaiya has covered the approach as well
yes understood the video you send but still not able to solve the question
ok , share ur code i will check what mistake u r doing
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.