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

Method getMinimumMove

chapter06/problem_b/Main.java:19–43  ·  view source on GitHub ↗

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

(int num, Bar from, Bar buffer, Bar to)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 2

popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected