← ALL NOTES
Array

2780. Minimum Index of a Valid Split

Given an array nums with a dominant element (occurring in more than half the positions). Index i (0 ≤ i < n−1) is a valid split if both parts nums[0..i] and nums[i+1..n−1] have the same dominant…

Loading…