|
|
back to boardAccepted !!! =) [code deleted] Edited by moderator 20.11.2019 00:02 Re: Accepted !!! =) Posted by candide 10 May 2013 02:59 One line in Python! Re: Accepted !!! =) I understood the solution. But I didn't understand the logic, why 1 is added before dividing the number? Thank you. Re: Accepted !!! =) Posted by Skeef79 25 Nov 2018 22:20 Because to get vote from i group you need to have more than a half votes. For example, If 7 you have 7 guys in a group, you need to have 4 votes. 7/2 = 3 3+1 = 4 Re: Accepted !!! =) Why you sorted the array?. Is there any need of it?. |
|
|