This animation demonstrates the right-to-left scan algorithm for finding leaders in an array. A leader is an element that is greater than all elements to its right.
We scan the array from right to left, keeping track of the maximum element seen so far (max_right). If the current element is greater than max_right, it's a leader.