Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The ants change their way when they meet is equivalent to continue moving without changing their direction.
Answer is the max distance for one ant to reach the end of the plank in the facing direction.