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.
brilliant
that's some wizardry
what is going on here
Its a function that returns a boolian:true IF the string "abc" can be found in the remaining 4 letters after splicing from both sides. The number is 4 to deal with the even numbered edge cases. If the excercise only took the exact middle as true you could use seq.length>3.
Ahh yes you are right @jistjoalal! I had too look that up, if the argument was an array or an object it would have been mutated but as a string it wasn't, thanks.
More info here: https://link.medium.com/XZZ1X9GxG9
@jistjoalal What variable name would you recommend I change it to?
JavaScript passes strings by value so it's no problem :)
Although it is a tad misleading that the strings name is
seq
I think that's the best solution
this is incredibly easy to understand!
I think it relies on https://www.mathsisfun.com/money/compound-interest.html
I first tried this solution, but couldn't get my head around on how to add aug to the formula.
Pretty clever solution, though.