๋๋ธ ํ๋ ธ์ด
-
๋๋ธ ํ๋ ธ์ด ์๊ณ ๋ฆฌ์ฆAlgorithm 2021. 6. 21. 11:22
์๋ ๋ฌธ์ ๋ ์ฝ๋๋ฆฌํฐ์์ ์ ๊ณตํ๋ ๋๋ธ ํ๋ ธ์ด์ ๋ฌธ์ ์ ๋๋ค๐ง๐ป๐ป ๋ฌธ์ ์ ์ You are given N disks and two rods, each with one initial disk. On the left rod, disks can be placed in decreasing order of size (smaller disks on top of bigger ones). On the right rod, disks can be placed in increasing order of size (bigger disks on top of smaller ones). Note that it is not permissible to place two disks of equal size on top of each ot..