CJ_China_Campus_Test_Summary

This is my own summary of the contest, mainly to give myself advice on how to make me faster on the next contest.

1. Bad horse. 

    Situation: This is a simple graph traversal problem. I used 34 mins to complete it.

    Advice: prepare a dfs and bfs graph traversal template in case of use. Next time you just need to get the input, convert it to the internal format and run the algorithm, which is much faster.

    To be more general, you have to make every algorithm at easy access. So next time you got a similar problem, you got time saved.


2.  Captain Hammer

    This problem I used 20 mins, I think most of my time is spent reading the question. And I find that some part of the problem is not relevant.

    Advice 1: Skim reading some part of the problem description that's not relevant.

    Note: You have to be sure what you skip is relevant.

    Goal: get the essential underlying model both quickly and accurate.


    Advice 2: Be careful with mixture of Double and Int

    Why:        Different sequences of double operation of the same essential effect could generate different result.

    One simple trick: cast doubles with few fraction digits to integers and then scale back the result.


3. Moist.

    Again, I used 20 mins. I made a mistake that i thought the key process of insertion sort to be a bubble sort at first. Did the first version, submit the answer and get a incorrect sign. Then I quickly found the key model part and get what's going on.

    Advice:  Once you have a model in your mind, you must know what parts of the description correspond your model. So reread the description carefully and make sure that it is.

   



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值