suppose in the example used here, there is onlyl one guy who wants 7th rank. but you will assign it the first available rank, i.e. 6, to that guy. This will create a badness of 1. But we could have provided him the 7th rank also which would not create any additional badness.
Greedy algorithm biased standing
How it is possible to allocate rank 7 without giving rank 1,2,3,4,5,6,
No it is not possible min badness in this case will be 6
Oh okay got the point… that ranks should be filled !
1 Like
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.