I am quite stuck on this one. I implemented some very simple code which gets me a score of 55%.
I don’t know how to get all possible answers, and first of all I don’t even know if it is really needed to compute all the solutions, only several optimal solutions, or if the best solution can be calculated with one pass.
I don’t know were to start to reach the 100%.
Should I go brute force, recursive… ?
The sorting order at the end makes no sense to me. The author gives a way to sort sequences of operations, but not how to sort operations within the sequences, something he clearly does.
On puzzle 10 for example, there is simply one giant sequence of operations that goes right to left (index 80 down to 1), yet the expected output is not in that order, go figure.
My guess : the author wrote a solution that gave him a specific order and then simply asked everybody else to match his output, whatever it is (I could be wrong but right now I’m a bit pissed if you can’t tell).
Edit : solved, there is indeed a way that naturally gives you the right ordering with multiple solutions. So my point still stands, the author did his thing and told us to match his algorithm
Hi,
I’ve managed to pass all tests (it was hard to find a way to have the operations in the right order but i’ve found a way…), but the validators 5 (Random) and 10 (Blocks) don’t pass …
I’m stuck; it’s hard to tell what is wrong
Can anyone give me hints, or give other test values to try to figure out the problem ?
Hi,
probably not worth mentioning anymore, but I just had the same problem. Probably you missed to pass overflow to the right after you passed it to the left. At least that was what it took to light up green for me.
Cheers