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 comment is hidden because it contains spoiler information about the solution
This basically means that your code is potentially correct but takes more than 6 seconds to compile and run which is more than the given time i.e. 6 seconds. Basically try and cut the code down into something more smaller and easier for the PC to process and you shouldn't run into this error anymore.
Use result.Trim();
'Looks like you've solved it'
User is not active anymore.
i < sortedArray
That's were you are wrong. No issue, the test is correct.
You don't put the spaces back.
You're still doing the same thing, appending 3 starts to the end, try
arrayLength - 1
Your solution returns
b***i***t***c***o***i***n***
instead ofb***i***t***c***o***i***n
, which has 3 stars at the end of the word when it only wants them between the letters. Find a way to remove these stars.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
I think you are quite close, too. That's how I started mine :).
First of all, you should be aware that you wrote
var n = str.length
, which is why your code is returning the entire length of the string.You've already got the part where you split a string. You also know how to call individual objects inside your array. All you have to do is find the length of each object and return the results to an array. Best of luck.
Because the test isn't on what the constructor returns upon initialization, it is basically on what
this.info
contains or returns when it is called.Loading more items...