From 9e625b89bac7e8daaf583e215f3a0df3dc250bb2 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Mon, 27 Jun 2016 11:17:34 +0200 Subject: Math section rebuild, merged convinience and sonstiges section. --- sonstiges/josephus2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sonstiges/josephus2.cpp') diff --git a/sonstiges/josephus2.cpp b/sonstiges/josephus2.cpp index 7676e3c..c0bcc2f 100644 --- a/sonstiges/josephus2.cpp +++ b/sonstiges/josephus2.cpp @@ -1,4 +1,4 @@ -int rotateLeft(int n) { //returns the number of the last survivor (1 based) +int rotateLeft(int n) { // Gibt Index des letzten Überlebenden zurück, 1-basiert. for (int i = 31; i >= 0; i--) if (n & (1 << i)) { n &= ~(1 << i); -- cgit v1.2.3