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
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 returns 0ac-2opy.
10ac-12opy
0ac-2opy
The problem has to do with replacing the 1 with an empty string in the return line.
1
Loading collection data...
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...