From edecc4b024ceb59b245f888f432018a4f1b7a02c Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Mon, 10 Oct 2016 21:55:09 +0200 Subject: Typesetting other section. --- other/josephusK.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other/josephusK.cpp') diff --git a/other/josephusK.cpp b/other/josephusK.cpp index 8758fee..522b584 100644 --- a/other/josephusK.cpp +++ b/other/josephusK.cpp @@ -1,4 +1,4 @@ -int josephus(int n, int k) { // Gibt Index des letzten Überlebenden zurück, 0-basiert. +int josephus(int n, int k) { // Der letzte Überlebende, 0-basiert. if (n == 1) return 0; return (josephus(n - 1, k) + k) % n; } \ No newline at end of file -- cgit v1.2.3