注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
情景coding题 不难 另外比较详细地讨论了一下time & space complexity in best and worst case. 题目如下:
given a transaction array, return the most frequent transactions in descending order, for transactions with the same count, return user names in ascending order, only retur您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 使用VIP即刻解锁阅读权限或查看其他获取积分的方式 游客,您好! 本帖隐藏的内容需要积分高于 188 才可浏览 您当前积分为 0。 VIP即刻解锁阅读权限 或 查看其他获取积分的方式 t;josh"], # transaction_type_b happened 2 times. transaction_type_c happened only once so not included.
}
时间有点久 细节记不清了 但是基本就是hashmap各种操作即可 |