Algorithm of 616 - Coconuts, Revisited

Problem Description Link

You can solve this problem using many method.
One condition is the
      If n is the number of people, then
           (n^n-n+1) is the number of coconuts.
you can get idea from this condition.
You can see solution
image

No comments:

Post a Comment

Write your comment - Share Knowledge and Experience