Ad
  • Custom User Avatar

    The the last case: 25,25,50,100, ...

    • 25: vasya takes 25 (vasya now has 1 x 25)
    • 25: vasya takes 25 (vasya now has 2 x 25)
    • 50: vasya takes 50, gives back 25 (vasya now has 1 x 25 and 1 x 50)
    • 100: vasya takes 100, gives back 50 + 25 (vasya now has 1 x 100)
    • and so on...

    Not a kata issue.

  • Default User Avatar

    Answer is YES. This is valid as you can return the 4th with 50 and 25.