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.
SMH calculating max() three times for the same values is not according to the DRY programming principle
I like hou you got here my dud
you haven't seen mine
This helped a lot. Thanks. Haha
slightly different but same idea
TypeError: 'int' object is not iterable ???
Makes my code looks like spaguetti
This comment is hidden because it contains spoiler information about the solution
wut did I just read
Could you elaborate on what the lambda function does in your solution exactly?
This is the only right way to solve the problem. Nice job!
I brute forced it
This comment is hidden because it contains spoiler information about the solution
very cool
This code doesn't work in all cases. I copied it and pasted it to VS Code and tried it with a test polynomial I made up.
poly = '2ac+8ca+9poy-21opy'
The answer should be
10ac-12opy
but it returns0ac-2opy
.The problem has to do with replacing the
1
with an empty string in the return line.Loading more items...