best=-1 and best bahut problem me liye hai ise use kis liye karte confusion hota?
Ye best=-1 har jagah liye hai ise use kyu karte
@rssrivastavarohan hey,hm basically best =-1 islie lete hai kyunki hme maximum answer or best ans is variable me store krana hai .To agr hmara current ans best se bda hoga to hm best ko current se update krdenge.Kyunki best ko hm minimum rkhenge start me islie -1 se initialise kia chahe to negative me kuch bhi rakh skta hai.
Hope you get it.
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.