Available question text
Compute each element's remainder mod 3 and for each add the minimum moves to reach 0 (min(r, 3−r)), which reduces here to counting all elements with remainder 1 or 2 — their count is the minimum number of ±1 operations needed.
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
Google
Leetcode 3190. Find Minimum Operations to Make All Elements Divisible by Three
Reported Oct 23, 2024 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source