← Amazon questions
CodingMedium-Hard

Least Unique Integers & Minimum Cost to Connect Cities variation

Filed under Amazon

Solve two problems: 1) Find the minimum number of unique integers remaining after removing k elements. 2) Find the minimum cost to connect all cities (Minimum Spanning Tree).

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

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