算法练习
会敲代码的koala啊
这个作者很懒,什么都没留下…
展开
-
每日一练习——密码锁
Description Scrooge McDuck keeps his most treasured savings in a home safe with a combination lock. Each time he wants to put there the treasures that he's earned fair and square, he has to open the lock. The combination lock is represented by n rotating原创 2020-12-29 14:52:39 · 473 阅读 · 0 评论 -
每日一练习——车辆碰撞选好车问题
Description Little Susie, thanks to her older brother, likes to play with cars. Today she decided to set up a tournament between them. The process of a tournament is described in the next paragraph. There are n toy cars. Each pair collides. The result of原创 2020-12-29 14:17:37 · 151 阅读 · 0 评论 -
每日一练习——买香蕉问题
看到一个算法专栏的博主的博客 -->(MingShen),觉得很有意思,可惜博主是用C语言写的,征得博主同意后本考拉决定将这位博主的算法题(当然是在自己能力范围之内的)用 java 或 scala 进行实现,哈哈哈哈哈哈。 Description A soldier wants to buy w bananas in the shop. He has to pay k dollars for the first banana, 2k dollars for the second one and so原创 2020-11-12 11:26:05 · 606 阅读 · 0 评论