Skip to content

honkimi/RubyPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

数独の問題を解くプログラム

ruby run.rb

HanoiRB

ハノイの塔の移動をダンプ

dump_hanoi.rb num  

3つの円盤の時の流れをダンプ

  • num : 円盤の個数。最大10.

n回目の円盤移動計算.

calc_hanoi.rb trans_times, circle_num

circle_num個の円盤でtrans_times回目は何個目の円盤がどこからどこへ移動するタイミングかを計算

  • trans_times 移動する回数
  • nCircle 円盤の個数

About

ハノイの塔の計算及びn回目の円盤移動計算

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages