MCPcopy Create free account
hub / github.com/dongyi-kim/10weeks-codingtest / getMinimumMove

Function getMinimumMove

chapter06/problem_b/main.cpp:27–55  ·  view source on GitHub ↗

* @brief 시작 기둥(from)으로부터 목적지 기둥(to)까지 num개의 원반을 모두 옮기는 최소 이동 횟수를 계산하는 함수 * * * @param num 현재 시작 기둥(from)에 놓여져 있는 원반의 수 * @param from num개의 원반들이 꽂혀있는 기둥 * @param buffer 비어있는 기둥 * @param to 원반들을 모두 옮길 기둥 * @return 모든 원반을 옮길 수 있는 최소 이동 횟수 */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 2

popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected