2016年8月6日 星期六

2014 闖關組 [Problem B5-易中] Apple trees in a line

http://e-tutor.itsa.org.tw/e-Tutor/mod/programming/view.php?id=23212

這題使用貪婪法,累積總和遇到負數歸零,時間複雜度O(N)

沒有留言:

張貼留言