Added: 2 years ago
From: mariostorti
Views: 6,297
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (3)

Sign In or Sign Up now to post a comment!
  • epic background music!! :D

  • Good illustration of the technique, but moves 9 and 10 were unnecessary, and at move 14, the stack is sorted. I guess your algorithm here simply repeats a sequence 2n times (for n pancakes) without checking for completion or redundancy. Tsk tsk!

  • Yes, you are right. In fact I programmed this with the simplest algorithm I found, as an example of programming with VTK-Python, rather than looking for the better algorithm.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more