Question DSA-GRDY-0069
HardWhat is the minimum total cost of connecting ropes of lengths 4, 3, 2 and 6, where joining two ropes costs their total length?
- A.
30
- 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
What is the minimum total cost of connecting ropes of lengths 4, 3, 2 and 6, where joining two ropes costs their total length?
30
15
Sign up free to see the answer and a step-by-step explanation.
25
29