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.
Floating point error in random tests:
The meaning of the input is not explained. What does
5p -40
and-5p +200
mean?Hi, thanks for you Kata.
Could clarify,
how to compute inflation rate ?
CPIs endDate - CPIs startDate ?
How does 38.85 appear in your solution?
Thanks
It's not explained how inflation rate is calculated.
The user can modify the input.
No fixed tests.
Node 12 should be enabled and
chai
should be used instead of the old test framework.Sample tests are still using
Test.expect
.I haven't actually done all the expansion, but in the producer surplus calculation, we are told to use the equilibrium function, and then we still need to calculate the zero supply price. That means parsing the supply curve anyway, so depending on the equilibrium function doesn't really save any work. I could have just copied the curve parsing code .. wait, I did.
Producer surplus function does not need to depend on equilibrium function, it could just be doing its own calculations.
In the example, producers are willing to supply at negative prices. Not the most ideal example.