We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I don't know who needs to hears this, but as a 8 YoE software engineer, this took me an entire weekend to solve ^^'.
A little spoiler-free tip I wish I had:
you will need to use the modulo whenever you can, because the amount of combination explodes pretty quickly. modulo is distributive over +, * and - operations, aka applying it to all those operators, is equivalent to only doing it once at the end.
even with modulo, in Typescript/Javascript you will need to watch out for some exploding results that exceed the maximum javascript integer (2^53-1)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Lego Blocks
You are viewing a single comment's thread. Return to all comments →
I don't know who needs to hears this, but as a 8 YoE software engineer, this took me an entire weekend to solve ^^'.
A little spoiler-free tip I wish I had: