β
Correct Answer: (C)
sorting
Explanation: the main time taking step is to sort the items according to their value/weight ratio. it defines the time complexity of the code.
Explanation by: Mr. Dubey
the main time taking step is to sort the items according to their value/weight ratio. it defines the time complexity of the code.
Discussion
Question Analytics
675
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
81%
Success Rate