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.
owo recursive, nice
This comment is hidden because it contains spoiler information about the solution
This solution doesn't work.
'Hello, world' -> 'Hello, orldway'.
Should be:
'Hello, world' -> 'elloHay, orldway'
exactly xD. But thats the beauty of this website. Learning from others.
I forfeited this one, but if I knew that words with punctuation inside of them don't have to work I would've wrote this.
It's not though? best practice would be to follow standards, PEP 8 clearly says 72 char lines max
alpha😈
but seriously how do i see new functions every day
Thank you!
List lookup is inefficient - O(n) - whereas sets and dicts are O(1).
I've the same solution. But it will be problem if punctuation will be inside word. We need to check words for punctuation and append them to our expression if they will be in the list. But for this kata this solution will work.
This comment is hidden because it contains spoiler information about the solution
This does not seem to work if punctuations marks are used,
For example:
pig_it("Pig latin is cool!") gives: "igPay atinlay siay cool!" where this should be "igPay atinlay siay oolcay!" because punctuation marks must be left untouched.
best practice
Good point
People commenting you should have stored strings over lists are dumb.
You should have put the same number in your adjacents dictionary though.
That way you can write: "adjacents[observed]" instead of "adjacents[observed] + [observed]"
Loading more items...