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
count[s] will return true if the Key s is in the object.
So if the key s is in the object it will increase the value (++), else if will add it and put the value 1 (count[s] = 1)
yea me neither tell me if you get it
array indexing starts at 0 as the first item and goes up to array.length - 1, thus arr[array.length] is add a new item after the last one
Please, use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
i dont understand why num=num/2;
This is really a maths problem (and not an easy one), not a coding one. It says nothing about your abilities as a programmer.
Hey man, i basically googled summing consecutive numbers and found https://nrich.maths.org/summingconsecutive/solution, basically some kids doing some work for us :) Just read the article and you will get 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
some faith returned after this kata thx buddy <3
no idea how it works.
i dont remember when i solved something myself.. so i dont think so
I spent 10 hours+ figuring out a mathematical solution based on triangular numbers and the hint that a solution existed without iteration. Keep trying. I'm probably dumber ;-)
Loading more items...