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.
[Clojure]
Tests give this error, which is not coming from my code:
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: next-row in this context, compiling:(/home/codewarrior/./test.clj:41:18)
ImportError: cannot import name 'pascal' from 'solution' (/workspace/default/solution.py)
Approved by someone
Approved
Ruby translation with updating to 3.0 (the main tests are locked)
Python translation with upgrade to the new test framework
took me a while but glad i completed this one!
C translation (author gone)
Approved :)
Approved by someone
LC translation
Approved
The number of results for
n
is ( on the order of )n^2
- in that sense, you're just not going to find anO(n)
solution.In terms of requested number of results, it can be done in
O(n)
. You can't be calculatingn over k
for every result to do that, but following the description works.If iterating over
n
items inO(1)
time were possible, solving P problems would be a lot faster.Haskell translation
Loading more items...