摘要:
Levenshtein算法Levenshtein算法定義及算法原理見這篇文章:一個快速、高效的Levenshtein算法實現JavaScript實現function levenshteinDistance(s,t){ if(s.length>t.length){ var temp=s; s=t; t=temp; delete temp; } var n=s.length; var m=t.length; if(m==0){ return n; } else if(n==0){ ... 閱讀全文
posted @ 2012-04-15 20:58
artwl
閱讀(1113)
評論(2)
推薦(3)
摘要:
今早在https://attachments.me/hirehack/public/computer.html做題,有一題是遞歸求嵌套數組中最大值:/*This challenge requires that, given as input an array which may contain: - integer values. - inner-arrays of integer values. - any recursive combination thereof. Return the largest value contained in the array or any of its 閱讀全文
posted @ 2012-04-15 10:30
artwl
閱讀(1001)
評論(2)
推薦(0)
浙公網安備 33010602011771號