diff -r c02929f2647c -r 6e1237691307 pre_solution2/docdiff.scala --- a/pre_solution2/docdiff.scala Mon Dec 07 01:25:41 2020 +0000 +++ b/pre_solution2/docdiff.scala Fri Jan 15 02:40:57 2021 +0000 @@ -34,7 +34,7 @@ val occs1 = occurrences(lst1) val occs2 = occurrences(lst2) words.map{ w => occs1.getOrElse(w, 0) * occs2.getOrElse(w, 0) }.sum -} +} //(4) Complete the functions overlap and similarity. The overlap of // two documents is calculated by the formula given in the assignment