We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17dbc3 commit 28776c3Copy full SHA for 28776c3
1 file changed
βing-eoking/μμ λμ§ν.pyβ
@@ -0,0 +1,6 @@
1
+def solution(n, a, b):
2
+ answer = 0
3
+ while a != b:
4
+ a, b = (a + 1) // 2, (b + 1) // 2
5
+ answer += 1
6
+ return answer
0 commit comments