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.
This kata is a candidate for retirement as it relies on contraints which are not enforced well, and are very difficult to enforce. Please join the discussion and share your opinion on whether this kata should be kept, or retired: https://github.com/codewars/content-issues/issues/167.
This comment is hidden because it contains spoiler information about the solution
Id just like to ask what exactly temporary arrays and objects are
This comment is hidden because it contains spoiler information about the solution
No random tests
This comment is hidden because it contains spoiler information about the solution
Node 12.x should be enabled.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please point out that the JOSN.stringify is not allowed also.
I think the kata description should be updated to say no regex. I originally wrote a solution using String.prototype.replace (which isn't an Object or Array prototype method) only to find on submission that replace isn't allowed.
I enjoyed this kata, otherwise.
You are NOT allowed to use any temporary arrays or objects.
I'm not entirely sure what it means exactly by not allowed to use temporary objects. Am I allowed to use temporary vars to store
Number
? (e.g.let x = array[i - 1]
)However, you can still use the methods of an array, and can't resolve with the Regex.
You can use monkey patching method to built-in objects.
I posted to the gist, and you can use it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution