Posts by Márcio Arruda • 61 points
3 posts
-
2
votes2
answers1598
viewsA: Recursive function call - Python
The code had a flaw. I fixed (rsrsrs) GENERAL TASKS def qs(lista): # função quickSort: ordena uma lista, revomendo as duplicatas if lista==[]: return [] else: pivor=lista[0] return (qs([x for x in…
-
1
votes2
answers1598
viewsA: Recursive function call - Python
CODE SOLVED!! Deletes the first function. I made only one. Hence what I did... from the raw list caught the first element in a destructive way. With a list comprehension, I create a list with his…
-
3
votes2
answers1598
viewsQ: Recursive function call - Python
I have a list of integers larger than zero. I need to identify the one with the largest number of divisors. For this I created three functions: one that lists, one that returns all divisors of all…