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.
Seeing same thing on Clojure side
Thanks for looking into this, Abbe. I'm no longer seeing this problem.
I'm not sure if I'm missing something, or there's a problem with the generated test cases. Here are a few generated test case inputs that look to be expecting "true".
(is-merge "mrg it? Ys, can!" "rei? Yes, a" "mg tcn!")
(is-merge "it? Yes, wcn!" "t? s, cn" "iYewe !")
I would expect these to return "false", but maybe I'm not understanding something...
This comment is hidden because it contains spoiler information about the solution
Speaking on the Clojure version of this kata, I'm having problems getting this test to pass for large n. Locally, my tests pass without running out of heap.
I created a test for n=77911, and the test passes no problem locally, but I'm met with a "java.lang.OutOfMemoryError: Java heap space" when running on codewars.
Could this have something to do with how the JVM is configured? If so, do the non-JVM versions of this kata have similar restrictions?
@g964: does it makes sense to update the Instructions with this information?
This comment is hidden because it contains spoiler information about the solution
Having problems with kata in Clojure.
Testing for (sq-in-rect 240 2).
My answer results in [87 10 3 1 1], but expected answer is [32 32 32 32 32 32 32 16 16].
Both answers result in the same sum of their squares: 7680. Why aren't both answers accepted?
Test output:
a-test6
Test 6 expected: (= (sq-in-rect 240 32) [32 32 32 32 32 32 32 16 16]) - actual: (not (= (87 10 3 1 1) [32 32 32 32 32 32 32 16 16]))