← Amazon questions

Connect Ropes and Graph Traversal

Filed under Amazon

Part 1: Given n ropes of different lengths, find the minimum cost to connect them into one rope (cost = sum of two ropes connected). Part 2: Find the shortest path (steps) between two nodes in a…

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.