Keyword: greedy.

Algorithm:

You don't need to know the name of each element needed.

Just scan through all firms and print the firm with the most requirements fit and the lowest price.

Code:

文章標籤
全站熱搜
創作者介紹
創作者 dibery 的頭像
dibery

A New Life, A New Hope

dibery 發表在 痞客邦 留言(0) 人氣(114)