ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1024. Permutations

Infinite loop --- 41523 -> 24315 ->41325 ->24315
Posted by touchinginfinity 31 Aug 2012 11:38
In testing my code .. it gets stuck in toggling between 41325 and 24315...and ends in infinite loop.

Can anyone help me with what I might be doing wrong ?
Re: Infinite loop --- 41523 -> 24315 ->41325 ->24315
Posted by touchinginfinity 31 Aug 2012 12:04
I think I got it .. what was going wrong.