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.
I suggest to do a rewrite on the random tests' logic to include tests below with optimal distribution of probability:
0
x
More than 1
x
Also, do add assertion messages for random tests too, make sure they are readable and well-formatted
Are you need approve this code? Or me need rewrite?
i think i'm to blame for the confusion, a week ago or so i added
if:c
andif:javascript
markdown blocks to the description because C returns astruct
and returns{-1,-1}
in case of missing/multiple 'x's. i just edited the description again to replace theif:javascript
byif-not:c
now that there are more than 2 languagesWrote an answer.
Tests, task descriptions, return values, everything was taken from the task using js as an example.
I added some remarks on the translation page.
Your return type is a 1-D array containing both x and y coordinates, which is different from other translations that return a 2-D array, each containg (x,y) pairs.
Did you invent this spec?
Really Nice!!
Do you want review my golang translation?
Added Golang translation
Need to review and approve this code.