Question DSA-GRDY-0034
EasyRopes of lengths 4, 3, 2 and 6 are joined into one, and joining two ropes costs the sum of their lengths. What is the least total cost?
- A.
29
- B.
15
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
Ropes of lengths 4, 3, 2 and 6 are joined into one, and joining two ropes costs the sum of their lengths. What is the least total cost?
29
15
Sign up free to see the answer and a step-by-step explanation.
25
30