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.
Very good!
Why Object.assign(this, {firstName}) is used here instead of this.firstName=firstName? I haven't seen this method mentioned in a JavaScript book.
upd: copies into an object... Genius!
I forget how simple slices are, they can do so much yet I forget how great they are all the time.
too complex man! difficult to read if you donno the pin conditions
Python fork with description updated to match test specifications
How does this even work? I am new.
Python tests explicitly ensure that
b >= a + 2
, so it is guaranteed. I'll change the description to specify this.love it
Static variables have upper case names conventionally.
it's not a completely ridiculous solution though.
This comment is hidden because it contains spoiler information about the solution
Welp, I tried... ;)
I didn't want to feel cheesy by googling "pyramid of odd numbers" and being given a solution, but after one hour of struggle and coming to a different solution... This is borderline insulting.
(Integer.MAX_VALUE)! is so INCOMPREHENDINGLY huge that we probably won't ever need the number of trailing zeroes lmao
If anyone ever does, PLEASE contact me so I can see why
negative factorials don't have a value, mathematically or computationally as far as I know, becaues of the definition
n! = n*((n-1)!), where 0! = 1
this is also the reason for some other funky mathematical phenomona, but this is a CS site so
point is, this function will never be used for values where n is an element of (-∞,0)
Loading more items...