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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I like how you listed your plan for the function, I think a good deal of programmers lack that ability. The fact that you're using it on such a short kata shows you're building/maintaining a good habit. Nice.
Could you explain your regex? I get the first part, but whey do you do \d{1,3} a second time?
I like your answer too, thank you for taking the time to explain that!
Ah, okay then. That was really well explained! I've known about a2 + b2 = c**2, and figured that c was the radius, but I was thinking about it the wrong way, in that (either) a or b should have been the radius. Makes more sense that way actually.
Thank you!
I'm horrible with math, can you explain why this works? (Or provide a weblink that can visually explain it?)
I figured that was what happened. Seeing as how you're 5 kyu and all! It makes me feel better about my code as well since ours are pretty much the same.
You don't need to import math.
I found the instructions also confusing. Using python if you tried to print(lst) it gave some strange output (not 1, or any sort of list).
I'm still new, and I've never seen anything called LinkedList for python so this whole kata threw me for a loop. If we execute dir(LinkedList) we don't get any useful information, help(LinkedList) also didn't help me much. So for me, it seemed to be a guessing game as to how we access the values in the lst.
I understood what you wanted us to give you, but I didn't/don't know how to access the items contained in the argument.
I had no idea! That's really neat.
Would you consider the str.translate function py3 with it's added requirement (assuming from comments above) would be 'best practice'?
@suic,
Thanks for helping out. I eventually gave up and just about threw my computer when I saw the top solution. I can't believe I didn't see that. I realized my code was getting longer and longer, and from what little experience I have here I knew it was getting too long to do "a challenge, but an easy one".
Was good practice trying it though, I didn't consider this easy at all! Sure stretched the brain muscles though. :)
Can you explain how/why your code works?
Thanks Kazk, I'll give that a try!
This comment is hidden because it contains spoiler information about the solution
Loading more items...