you are viewing a single comment's thread.

view the rest of the comments →

[–]HeyBobby 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (2 children)

Pretty simple problem. Programmers must not have been good back then. This is like a level 5 codewars practice exercise.

[–]fschmidt[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (1 child)

The brute force simulation approach takes too long, or at least it did back then. So one has to find a better approach than just simulating shuffles.

[–]Vulptex 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

I mean the simulation approach could be used to lead you to the faster solution.