Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You got a space after each number and then a comma, invert the order put first the comma and then a space, thats all!
Tenes un espacio despues de cada nuemro y despues la coma, inverti el orden, pone primero la coma y el espacio despues, cambia eso y ya esta!
Finally I pass the test ...
I try with a totally different approach (incrementing the number) and can't pass the 750 mark in the test either. I'm new coding I start a little over a month ago, so everithing is new for me.
you have to completely change your approach. You cannot sort at any step of the while loop, for example.
count
is a bad idea too, since you do it in a loop which is itself inside another loop.starmap and product are from itertools
This comment is hidden because it contains spoiler information about the solution
I test it with my solution and it gives 17962
I think this kata is overrated
Maybe it is because in your pc you use a list of list for examplem [[1,3],[2,5],[6,9]] and a list the test uses a list of tuples ([1,3],[2,5],[6,9])
Did you import it?
from itertools import count
And count(0, 9) will generate an iterator of: 0, 9, 18, 27, 36, ...
I copy & paste the code in my idle and to understand what the count(0,9) is doing and it only shows an error:
File "main.py", line 2, in gen
for x in count(0, 9):
NameError: name 'count' is not defined
How do you obtain the last formula? I was traing to do something like that but i couldn't, feeding all the fishes of the same size in one round was really clever, good job man!
Once it has a reply you can't delete your post.
Can you tell me how to delete it?
Once it has a reply you can't delete your post, but it is fine, just remember to mark your post as having spoiler content (when posting code like this in a solution) and it won't be visible in the home page. This time I've marked both your posts for you.
Loading more items...