Records can contain random errors, such as string corruption, misuse of specification format versions, and unspecified log levels
Errors are arbitrary and the expected handling is undefined. It is only possible via repeatedly failing against the tests and guess what the author wanted.
Precomputations enabled by a small input domain are not cheats, they're optimisations.
Newer JS versions have BigInt, which would allow for a larger input domain. That might actually solve this "problem". Scanning source code for patterns is a losing proposition.
Do you wana send a rocket to the moon ?
Fantastic solution. I completely rewrote mine based on what I learned from yours!
Great obfuscated code contest entry!
The array size is known and fixed. This runs in O(1).
My favorite solution so far.
Errors are arbitrary and the expected handling is undefined. It is only possible via repeatedly failing against the tests and guess what the author wanted.
There are no sample tests.
There are no random tests either.
nice
That syntax... :O
Precomputations enabled by a small input domain are not cheats, they're optimisations.
Newer JS versions have
BigInt
, which would allow for a larger input domain. That might actually solve this "problem". Scanning source code for patterns is a losing proposition.IMO it depends. Javascript is a chimera. Maybe you want to mutate the object! But in a pure functional world this is a sin.
Nice one with the "pageItemCount". I've done with 3 ifs :-)
Nice solution
This comment is hidden because it contains spoiler information about the solution
man, i made my solution way extra longer. maybe i got intimidated by not knowing class/constructor Lol
Loading more items...