2 Responses

  1. Shilei Zhu
    Shilei Zhu September 5, 2012 at 1:37 pm |

    Hi, Liu Yang:
    I tried DP method, it works. You can check at my website. But your solution is better, I love this method! Greedy Algorithm!

    Reply
  2. Shilei Zhu
    Shilei Zhu September 5, 2012 at 1:40 pm |

    Sorry, I messed up. I did not use DP!

    Reply

Leave a Reply