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.
Javascript
Returning this error
/runner/frameworks/javascript/cw-2.js:237
throw ex;
^
TypeError: require is not a function
at /home/codewarrior/index.js:57:14
at /home/codewarrior/index.js:72:5
at Object.handleError (/runner/frameworks/javascript/cw-2.js:233:11)
at Object. (/home/codewarrior/index.js:3:6)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at [eval]:1:1
at ContextifyScript.Script.runInThisContext (vm.js:50:33)
at Object.runInThisContext (vm.js:139:38)
at Object. ([eval]-wrapper:6:22)
at Module._compile (module.js:652:30)
This comment is hidden because it contains spoiler information about the solution
What is the purpose of disallowing
print
andsys
for Python?I've created a Haskell translation. I'd appreciate if somebody could review it. It probably needs some work espescially for the tests. Because Text.Regex.TDFA in Haskell seems to be slower and use more memory than other languages, I had to limit the tests to only be up to n=16.
I've done this in kotlin and when in test manually all works, but for big number like 18, my regex is very very very big (300k chars), and here i fail (Exit Code 2) with no more information, do someone has some hints why i have this exit code ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Is the allowed character set ( 01?:*+^$()[]| ) accurate?
This disallows positive lookaheads (?= .... ), which requires the '=', and quantifiers {1,3}, which require '{},', both of which are valid in the Javascript regex engine.
If those characters (and implicitly, the lookahead and quantifier features) are in fact allowed, the allowed character set should be updated.
If they are (intentionally) not allowed, it would be nice if the description made that clear and explained why -- they are both very standard regex features and the description does not mention limitting which regex features the answer should use. I wouldn't think that they fall under 'funny business', so I am unsure why they would be forbidden.
And obviously if they are unintentionally not allowed that should be fixed.
This comment is hidden because it contains spoiler information about the solution
Go translation published. My first one, so any feedback/suggestions are appreciated
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution