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.
added the extra compact (not obfuscation minify, just func-style) solution with explanetions of my hacks ;-)
This comment is hidden because it contains spoiler information about the solution
Under
Technical Details
:0
or more possible solutionsHave to rewrite solver very compact, with bithacks.
And use custome debug with qute console log of maze layers:
The 1st example can be solved in differetn way?
That is:
The current performance trick is lookup table for all 2**n index of Fibonacci values Array(21) at all.
Then in computation it uses for sum by bits of index some Fibonacci values (avg 9 parts) by simple dot product twice.
This make pretty fast computation in strass loop, with no powers only 4 mul + 2 sum. (avg 32mul +16sum of bigint per request)
The topicaster advice to use powers is not the best!
With lookup table the sums are enough!
It can be speed up more with create lookups for group of bits (pre sumary pairs or quadruples)
why =a ?
just you can?
the most increadible way, witch use only algorithmic dependencies, above langage sugar as RegExp, reduce or some!
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution