注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一题,
Given a workList, and two work handlers to consume the job in workList. Also two lists, one longTimePrepare and shortTimePrepare
If the handler first time handle workList[i] or last work is not the same. The cost is longTimePrepare[i]
If the handler last work is the same. The cost is shortTimePrepare[i].
Output: minTime
Example:
worklist = [1, 2, 2] // worklist 里存的是work编号
longPrepTime=[4, 5]
shortPrepTime=[2,3]
minTime = 4 + 5 + 3
第二题
求加米! 谢谢 :) |