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.
You might want to add
Test.assertEquals(longestPalindrome("abcacba"), 7)
as a test case. I've seen a solution which effectively iterates the array, for each character looks up the next index of of that character and decides if it's a palindrome -- this case will fail that method because it will only considerbcacb
as a palindrome, since a -> a would only get the first half of the palindrome in the string.module.js:457
throw err;
^
Error: Cannot find module './runners/elixir'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.module.exports.run (/runner/lib/runner.js:3:10)
at Object. (/runner/run-json.js:1:87)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
This happens every time I want to submit or test my Elixir solution.