Available question text
Sequentially scan the array and whenever adjacent elements are equal, double the left one and set the right one to zero (operations applied in order, not simultaneously). After all operations, stably move all zeros to the end and return the resulting array.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2460. Apply Operations to an Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source