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.
On Haskell there is a bug in testing code:
In random tests, for example, having a list of monomials: ("", -1), ("b", -9), <...>
so, the system says:
expected: "--9b+ <...>"
got: "-9b <...>"
Obviously, that testing code doesn't work correct for monomial "-1", because, it reduces that to "-" (like "-1a" should be reduced to "-a")
So, could you please, check this behaviour and fix it?
Regards
fork
Python fork (author gone)
ππ
Thank you for this kata! Nice! I've been solving for a long time, but i enjoyed it.
How do I understand which tests were used in the section "More complicated tests"? Otherwise I won't understand how to fix the code. All other tests are solved correctly.
I still am struggling to understand thisπ€. Can someone explain it in a dummy way, please?
doesn't "5ab" have a number of variables greater than "-c"?
Maybe you're misunderstanding the instructions. Each letter is a variable, you must sort by the "number of variables", not by the coefficient
low
One of the test cases is looking for -c+5ab but the instructions say:
All monomials appears in order of increasing number of variables, e.g.:
"-abc+3a+2ac" -> "3a+2ac-abc", "xyz-xz" -> "-xz+xyz"
First comment I've left on this website; nice job
I thought mine was the most optimal. Lol
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...