← Microsoft questions

Sort tuples and Two Pointers Target Sum

Filed under Microsoft

First, sort a list of tuples primarily by their value element and secondarily by their key element. Second, given a sorted array and a target sum, use two pointers to determine if there exist two…

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.