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.
Nevermind. Figured it out :)
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 there may be an issue with one of these test cases: strongEnough([[ 5, 1, 7 ], [ 1, 1, 1 ], [ 4, 1, 2 ] ], 100).
[ 5 + 1 + 7 ],* [ 1 + 1 + 1 ] * [ 4 + 1 + 2 ] returns 273
Building Age is 100 and 1000 - 1% one hundred times returns 0.
0 is less than 273, which would require "Needs Reinforcements!" but it is expecting "Safe!".
This comment is hidden because it contains spoiler information about the solution
I have the length of the array stored in a variable though. So if there are 10 items in the array, the arrayLength variable will be 10.
Here's my for loop:
So I have an if statement that asks if i is equal to the arrayLength variable(max length of the array), then add an empty string. If not add '***'. Wouldn't this work?
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
So, I'm thinking that my code is correct for this challenge, but I'm getting an error that says "Process terminated. It took longer than 6000ms to complete this task".
Is this something that people have been running into?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Got it. Thanks dude! :)
This comment is hidden because it contains spoiler information about the solution
Loading more items...