Re: [algogeeks] Re: POWER CRISES :Spoj

2011-06-30 Thread harshit pahuja
@rizwaan u r ryt bt i want a O(n) soln .. whats say On Wed, Jun 29, 2011 at 2:55 PM, rizwan hudda rizwanhu...@gmail.com wrote: http://ideone.com/MSLXT The constraints are so less that you can brute force the solution..N100. My solution is O(N^3) On Thu, Jun 30, 2011 at

Re: [algogeeks] Re: POWER CRISES :Spoj

2011-06-30 Thread hpahuja.mnnit
any1??? On Thu, Jun 30, 2011 at 12:45 AM, harshit pahuja hpahuja.mn...@gmail.comwrote: @rizwaan u r ryt bt i want a O(n) soln .. whats say On Wed, Jun 29, 2011 at 2:55 PM, rizwan hudda rizwanhu...@gmail.comwrote: http://ideone.com/MSLXT The

[algogeeks] Re: POWER CRISES :Spoj

2011-06-29 Thread harshit pahuja
http://en.wikipedia.org/wiki/Josephus_problem here there is an explanation of the derivation of josephus which is nt very clearcan some1 explain it plzz On Wed, Jun 29, 2011 at 12:40 PM, harshit pahuja hpahuja.mn...@gmail.comwrote: Hello guys... http://www.spoj.pl/problems/POCRI/

Re: [algogeeks] Re: POWER CRISES :Spoj

2011-06-29 Thread rizwan hudda
http://ideone.com/MSLXT The constraints are so less that you can brute force the solution..N100. My solution is O(N^3) On Thu, Jun 30, 2011 at 1:13 AM, harshit pahuja hpahuja.mn...@gmail.com wrote: http://en.wikipedia.org/wiki/Josephus_problem here there is an explanation of the derivation of