Module: Algorithmable::Puzzles

Defined in:
lib/algorithmable/puzzles.rb,
lib/algorithmable/puzzles/josephus_problem.rb,
lib/algorithmable/puzzles/dijkstras_two_stacks.rb

Defined Under Namespace

Classes: DijkstrasTwoStacks, JosephusProblem

Instance Method Summary collapse

Instance Method Details

#new_josephus_problem(prisoners, every) ⇒ Object


6
7
8
# File 'lib/algorithmable/puzzles.rb', line 6

def new_josephus_problem(prisoners, every)
  JosephusProblem.new(prisoners, every)
end