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.
This comment is hidden because it contains spoiler information about the solution
Go random tests are broken:
There is some wording weirdness in the instructions. I would understand how a sequence of elements in this sense can be contigous - it would be a slice of the original array. Then non contigous would be when it's not a slice of the original array, ie it has one gap. There is no sensible definition for calling an element contigous which the description does as it's not a property of the element. I understand what it's trying to say though. I would reprhase the instructions. Also would explicitly explain that no joint pairs following the original array order are allowed.
This operates on arr in place. While it wasn't explicitly stated the function should operate on a copy, one could argue the return type only makes sense if the function operated on a copy.
Go preloaded tests are not quite right. It doesn't correctly pick up the set variables
clues
andexpected
. I assume because the examples run after all lines of the Describe are evaluated, so the way it's done it only runs with last clues and examples. Could we move setting these variables inside theIt
?This comment is hidden because it contains spoiler information about the solution
This has confusing instructions. I don't mind the chessboard story or what's there but what's missing. There should be some explanation that you expect the results in a rational representation. It shouldn't be a guesswork that the returned array represents a rational number. I did go, and []int is not a natural way to express rationals.
ok admittedly I haven't read the instructions for other languages which have a hint. I rephrase the suggestion as mentioning this as a language independent requirement at the top.
This comment is hidden because it contains spoiler information about the solution
Awesome. I found "and an unlucky bear that was hit going the other direction" extremely funny. :D
So it should be
(a(b*))|c
maybe "sequencing" should be called concatenation? I think it's much better word for it
removed that testcase
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
Given that the author hasn't logged in for 2 years, and first I reported this 4 years ago I decided to fix the types myself.
ah. I see. the name "count" mislead me.
Loading more items...