注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
quant的第7套题,120Min 3道coding
1. tetris
给了几个俄罗斯方块的描述,比如[0,0][0,1][1,0][1,1],问他们能不能拼成一个rectangle, 如果能,返回长方形的面积,不能返回-1
2. word count from stdin
大致就是从stdin读取word strivector<vector<double>>matrix = {{0.8, 0.2},{0.1, 0.9}};
最后返回{0.333, 0.666}
|