@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
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
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/
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