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.
Yes. In my solution I assumed that input can only have numbers (per description), so I thought it would be not necessary to check that first and last characters of combined scrill are also a numbers
Great! But I think with ^...$ it would be stricter
/^(\d{3})(\d{3})(\d{4})$/
This comment is hidden because it contains spoiler information about the solution
Regex can be really slow in certain situations.
This comment is hidden because it contains spoiler information about the solution
Haskell has a problem with random tests. The random tests expect incorrect things, but you can just retry submitting until you get a pass. Following example is real, but I clipped it for length.
This array is not sorted and should not expect "yes, ascending."
Fuzzers! I need fuzzers in the Elm tests! Thank you so much a) for translating (which I totally should have done) and b) for reminding me how to make a dang fuzz test!!
Haskell translation
Resolve this once you've got some tests that categorically reject my solution then. You probably also want to tune the test generation so that things are always some epsilon in/outside the ellipse just incase.
Python:
Point attributes should be accessible like normal attributes (
p.x,p.y).This comment is hidden because it contains spoiler information about the solution
Python:
Also, idc about ppl submitting my solutions, but in general if you wanna test a solution just open the fork panel and do it there. You can add debug stuff to the tests as well then.
This comment is hidden because it contains spoiler information about the solution
First one I could generate:
{'x': 88, 'y': 25} {'x': -27, 'y': 87} 261.29676614914314 {'x': -68, 'y': 0}, for which the reference solution claims is inside the ellipse whilst mine claims it is outside.For what it's worth doing the calculations using arbitrary precision decimal libraries in other languages agrees with my solution here.
Loading more items...