This comment is hidden because it contains spoiler information about the solution
I don't even wanna understand it so it doesn't ruin the magic
hard coding, awesome!
I love it! it took me a day to come up with O(n) solution LOL
But seing a such simplistic soluction made me realize have to improve my skills
THANKS for this.
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
the last expression feels like you were insecure about your solution, since you're not generate tribonacci numbers past the nth target
You guys! how could 3 be "magic" in "tri"bonacci word ?
The description is tricky :-D
Oh man! it hurts my eyes