Q&A Discussões
Pyramind
3 Votos
2 Respostas[Make mutation recursion]
3 Votos
3 Respostaswhat is the problem?
0 Voto
3 RespostasReverse string
2 Votos
7 RespostasRunTime Error
1 Voto
3 RespostasI need to design a recursive function called replicate recur which will receive two arguments: times which is the number of times to repeat and data which is the number or string to be repeated.
The function should return an array containing repetitions of the data argument.
For instance, replicate_recur (3, 5) should return [5,5,5].
If the times argument is negative or zero, return an empty array. If the argument is invalid, raise ValueError.
0 Voto
4 Respostashow this works
1 Voto
3 RespostasRecursive in Java
0 Voto
1 Respostahow to fix
0 Voto
1 RespostaFinding GCD
0 Voto
1 RespostaPython problem
-1 Voto
1 RespostaQuente hoje
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Please rate my code from 1 to 10
2 Votes
How to start
0 Votes
Recursion doubt
2 Votes