You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
Keep track of the indices on both RLE arrays and join the parts together.
Hint 2
What is the maximum number of segments if we took the minimum number of elements left on both the current segments every time?