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.
Nice. There is a typo though: in emit_instructions_recursive you have PO instead of PU. Also,
move_immediate_to_rhs
can swap the operands of division or subtraction.This is the same cheese I did.
I did not vote it as clever because an fstring could be considered a fundamental python feature.
IMO clever code should be the use of obscure stuff so for Python 3 this should be best practice.
It should panic, according to the description that's an invalid input.
This comment is hidden because it contains spoiler information about the solution
If you enter 11 the code will panic. I don't think this is a "best practice."
@space7panda: Of course not. In real projects, we'd use a modern functional style. ;-)
i really hope no one will do that in real projects, i already suffered enough from weird legacy
Approved by akar's fork!
oh,i can't understand this code.
who can tell me why?
Description cannot be approved, recent changes from related record must be merged first., Language Version is invalid for rust
And what if the area code was, say, 4 digits long?
True, but test passes! :D
True. Although probably not important for the 8th kyu. Thanks :)
This solution mught give incorrect result in case multiplication overflows
Have you seen my solution? Comparing numbers as strings doesn't require actually parsing them.
Loading more items...