This was a fun one, one kind of pattern needed to be identified and then a mental leap to solve in the end, nice puzzle! Not too hard, but a fun one none the less
Its not quite a binary tree its a directional graph where each node has exactly two children. But i think the amount of incomming edges can be different for each node. (Rings can exist)
This was a fun one, one kind of pattern needed to be identified and then a mental leap to solve in the end, nice puzzle! Not too hard, but a fun one none the less
It didn't occur to me that I had to use "trick".
but after seeing brute force not working out, I figured it out
Yeah, it wasn’t obvious to me immediately that the brute force would take so long. Once I started to run it I figured there must be a better way!
Spooky 👻
Gotta watch out for them desert ghosts!!
Its not quite a binary tree its a directional graph where each node has exactly two children. But i think the amount of incomming edges can be different for each node. (Rings can exist)
Ahhh yes, you are 100% correct of course! I was only thinking about the left right nature, but of course it’s actually just a directed graph