-
https://github.com/calvinsettachatgul/training/blob/662ba74be54b9d45c3547cc89dc02b1daa8ac5a5/Josephus.java#L44
hi hugo what do you think about these tests cases? are the expected values correct?
-
There are n people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the circle in a fixed direction. In each step, a certain number …
-
```javascript
var joseph = function (k, m, N) {
var idx;
var data = []
for (var i = 0; i < m; i++) {
data.push(i);
}
console.log(data);
while (m > 1) {
…
-
Consider this code for josephus problem
-
**Is your feature request related to a problem? Please describe.**
interview related question
**Describe the solution you'd like**
Given the total number of persons n and a number k which indic…
-
Please consider this code for josephus problem
-
Given the total number of persons n and a number k which indicates that k-1 persons are skipped and kth person is killed in circle in a fixed direction.
The task is to choose the safe place in the …
-
There are n people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the circle in a fixed direction. In each step, a certain number …
-
Hello, I am Abhishek, a GSSOC 21 participant. I have doing competitive programming for a while now. Mostly in C++
I want to include the josephus problem code.
There is no recursive code for josephus…
-
Can you assign me this task? I will be really grateful to you if you tag this as my Hacktoberfest 2022 contribution.