module Algorithmable::Cups::StacksAndQueues
Public Instance Methods
new_stack_with_min()
click to toggle source
# File lib/algorithmable/cups/stacks_and_queues.rb, line 14 def new_stack_with_min StackWithMin.new end
new_tower_of_hanoi(index)
click to toggle source
# File lib/algorithmable/cups/stacks_and_queues.rb, line 26 def new_tower_of_hanoi(index) TowersOfHanoi::Tower.new index end
new_triple_stack(size)
click to toggle source
# File lib/algorithmable/cups/stacks_and_queues.rb, line 10 def new_triple_stack(size) TripleStack.new size end
new_two_stacks_queue()
click to toggle source
# File lib/algorithmable/cups/stacks_and_queues.rb, line 18 def new_two_stacks_queue TwoStacksQueue.new end
sort_stack(stack)
click to toggle source
# File lib/algorithmable/cups/stacks_and_queues.rb, line 22 def sort_stack(stack) StackSorter.sort stack end