← Microsoft questions
CodingReported in a candidate post, Jul 2021

Remove every 5th element from a map

Filed under Microsoft

Given a dictionary (map), remove every 5th element based on its insertion order. The function should modify the map in-place or return a version where elements at indices 4, 9, 14, etc. (0-indexed)…

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 Microsoft questions

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