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.
Python, sorry, forgot to tell ya
Oh I was looking at a JS solution of yours (?) . What language is the solution you are referring to?
I was able to make it pass, got lucky I guess. I had another one, which produced slightly longer regexes and passed all the time by the way.
Your solution does not seem to ever pass, unless you had a different one when you made this issue, but without some form of reproducability we can't call this an issue.
My solution passes randomly, the testing system lacks some essential testcases, not sure what they are, but sometimes they appear, sometimes they don't.
The description does not mention if the input strings contain leading zeros or not. It simply says "binary strings" and "binary numbers" which is contradictory, because the first one usually means there may be leading zeros, the second one means the opposite.
This is my first 1-kyu, it was pretty enjoyable to solve!
I'm currently at 3-kyu overall, and had decided to go for a 1-kyu as I have been recently only been solving kata in the range of 8-kyu to 5-kyu, and had wanted to challenge myself by solving either a 1-kyu or my third 2-kyu.
However, I personally think that this is more of a 2-kyu because aside from the algorithm implementation, I wouldn't say that the character limit is that much of an issue. In fact to me the character limit could be 3000-3500 chars and the kata's difficulty would probably still be about the same.
Depends on your country. In Germany, yellow is between Green->Red and Red->Green.
The dot isn't in the allowed chars list. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Ah I understand now. Yes, tests for Node 8 worked differently, they did not require to use the
require
, but I think now docs on testing in Node 8 are not easily accessible anymore and it's not clear how to add own tests.The issue is valid, the kata should be either bumped up to Node 18, or some sample tests should be added. I will try to fix it later, or re-raise the issue with a proper description.
I'm not requiring any modules in my solution file, but the test file requires testing modules. So, the "TEST" button is unusable, but I figured out that I can still hit "ATTEMPT" button and error doesn't show up. I will mark the issue as resolved, because it doesn't keep me from attempting to solve, but "TEST"ing in CW env for this kata is still unavailable.
I was missing one condition in my solution, where I can't use "=" symbol, I will fix it and retry later.
Thanks for the response anyhow.
While this is true that this kata is not available in Node 18, enabling it still might not help. If you are trying to
require
a module which is not listed as supported by CW environment, enabling new Node will not help you. What module are you trying torequire
?Javascript: Can't change node version to higher than v8.1.3. In drop-down menu, where you would select the language version, it says "Not available for this kata" when hovering over other options, like v18.x.
I have a solution that works (tested locally) and I would like to submit it but can't, since tests include "require" keyword and it errors with "TypeError: require is not a function at ..." message.
Please help, this will be my first solved 1kyu kata :( Maybe, I'm doing something wrong?!
I looked through the existing Java solutions and there are basically two types:
String[][]
arrays, coming out with 800-1500 characters.None of them is golfed. Some even have comments explaining the algorithm.
Of course, this is due to survivorship bias, so longer solutions will exist but are not passing.
You might want to attempt/test your solution once that I can take a look at it.
Loading more items...