Greedy
155 / 170GreedyLesson 9 of 9About 53 min
Two problems rebuilt cold, plus the test that decides which unit a problem belongs to.
You must select items with weights and values to maximize value under a weight limit, where each item may be taken at most once. Is a greedy rule by value-per-weight correct?
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.
You have solved this one before. Rebuild it from scratch without looking at your old submission. If the approach does not come back within a few minutes, that is the signal that it needs another pass.