注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
昨天做了亚麻OA。
第一题:A customer wants to buy a pair of jeans, a pair of shoes, a skirt, and a top but has a limited budget in dollars
第二题:Grouping people in audible grou,用文字解释思路的时候尽量把算法描述清楚。
我写得特别简略,第一个写了用DFS,加一些剪枝条件。第二个就写了这是个典型union find问题,怎么分组怎么合并。
|