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
I usually write my code in an outside environment and save my progress onto my computer. Once i feel that it is done, I just copy and paste it into the codewars terminal!
While testing for the array of size 100000, it says that I complete the test, but then it shows the "Max Buffer Reached: Too much information has been written to stdout. Process exited prematurely with a SIGKILL signal." error. I understand that the console just runs out of space, but then how has anyone finished this kata?
This comment is hidden because it contains spoiler information about the solution
Can someone please explain to me why this is a legal operation? I have not come across this before and am interested in knowing why this works.
at first I had something like this, but it didn't like it when the sale percentage was 100, as it created a divide by 0 error. do you know why that wasn't the case for you?