2018年4月25日 星期三

Tutorial from internet

KMP algo Visualizing KMP & BM algorithms: http://whocouldthat.be/visualizing-string-matching/ KMP字符串匹配算法1 https://www.youtube.com/watch?v=dgPabAsTFa8 KMP算法 https://www.youtube.com/watch?v=ViqecFWl...

2018年4月24日 星期二

Estimate Home Money

calculate = function() { var resources = document.getElementById('a1').value; var minutes = document.getElementById('a2').value; var people_fee = document.getElementById('a3').value; document.getElementById('a4').value = parseFloat(resources) * ( 10 - parseFloat(minutes)) / 10 + parseFloat(resources) * 0.01 * people_fee + 1.2 +...