โ† TCS questions

Separate multiples of 10

Filed under TCS

Given a list of integers, rearrange the elements such that all multiples of 10 appear first, followed by all non-multiples of 10. Preserve the relative order of elements within each group if possible.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.