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 couldn't pass the test so I unlocked and tried the solutions. To confirm newmaidumosa's guess, all of the 14 solutions now time out and no longer pass.
For
begin: 20, end: 39, step: 5
you'll have:[20,25,30,35]
to calculate the sum.The last element is meant to be
40
if your upper limit is40
, but the sequence ends at39
, so you can only reach up to35
which is the previous element of40
.The comprehensiveness of the sample tests in Haskell is impressive. Thanks!
I'm not able to see the test cases either, but I guess it could be the case of "a plateau at the end of the array" other comments are talking about, for example:
[1,2,3,1,2,2,2]
shoule returnPickedPeaks {pos = [2], peaks = [3]}
.This comment is hidden because it contains spoiler information about the solution
Thanks for the nice kata! Also I'm the 1000th to complete it, screenshotted to celebrate ^_^
The
Ctrl
+n
Emacs keybinding (next line) doesn't work for me (Firefox, Linix), it opens a new window as is defaulted by the browser.Is the next line function reassigned to another binding, or should I try to override the browser's default behavior? Thanks!
If you are stuck and wanting to unlock the solutions like me (in Haskell), try iterating over the input string fewer times. Good luck!
I need to learn to use
zipWith
and remember thatmaximum
is inPrelude
.The
(Money, Int)
tuple is redundant, refactored to just count the number of 25 and 50 notes.Haskell random test might be generating some weird
Char
s, I could not figure it out myself.This comment is hidden because it contains spoiler information about the solution
TIL spoiler comments are also hidden from the commentor who has not solved the kata.
It pushes me to read again the error messages to find out that, as mentioned below, the key is that
f
always has typeInt -> Integer
.This comment is hidden because it contains spoiler information about the solution
Turns out I wouldn't have learned that there is upper camel case (HelloWorld) besides lower camel case (helloWorld) if not for this kata.
Link to the wikipedia page: https://en.wikipedia.org/wiki/Camel_case
Loading more items...