diff options
Diffstat (limited to 'other/josephusK.cpp')
| -rw-r--r-- | other/josephusK.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/other/josephusK.cpp b/other/josephusK.cpp deleted file mode 100644 index 5025f89..0000000 --- a/other/josephusK.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// Der letzte Überlebende, 0-basiert. -int josephus(int n, int k) { - if (n == 1) return 0; - return (josephus(n - 1, k) + k) % n; -} |
