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.
Ahh! Maybe I should change title/wording to avoid easy googling solutions?
Something like "Words with no missing letters" or something like that?
To be fair I just googled and copy-pasted the formula.
Nice using inclusion exclusion principle
This comment is hidden because it contains spoiler information about the solution
Hello, I don't understand the " c.discard('*') or c and c.pop() " part, what is the meaning of this expression and how does it work?
WTH!!??lol!
"Character on odd index"
yo
I wanted to avoid the obvious index/find.
This comment is hidden because it contains spoiler information about the solution
As long as you provide an expression that is of boolean type, you can do it! :)
Because if it were valid, the feedback for SACRAMENTARIANS would've been different. Explaining further would be a spoiler, and figuring out why and coding it is typically the last step for solving this kata.
Why is 'REPAIRABILITIES' invalid?
The formula used to calculate the "current restituiton arrearage", as it is called in the output string provided by you, is
max(0, expected_payment_before_review - actual_payment)
. The term "arrearage" means "something unpaid and overdue" - how on earth can you be "negatively in debt"?If it is negative, it is an arrearage. Multiplying by -1 makes it positive. This is so you can print out the arrearage as a positive.
Loading more items...