This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingFind the longest run of equal values along a path between two nodes.
What this asks
Find the longest run of equal values along a path between two nodes.
Return the longest same-value chain ending at each node; when a child shares the value the chain extends, and a running best records the two chains meeting at the node.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing