From 5ab8a5088b729a9953b8dff1b2a985dc8fb2098b Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 27 Jun 2022 17:19:28 +0200 Subject: updated tcr --- other/josephus2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'other/josephus2.cpp') diff --git a/other/josephus2.cpp b/other/josephus2.cpp index a973609..5086e13 100644 --- a/other/josephus2.cpp +++ b/other/josephus2.cpp @@ -1,8 +1,8 @@ int rotateLeft(int n) { // Der letzte Überlebende, 1-basiert. - for (int i = 31; i >= 0; i--) + for (int i = 31; i >= 0; i--) { if (n & (1 << i)) { n &= ~(1 << i); break; - } + }} n <<= 1; n++; return n; } -- cgit v1.2.3