Compute the similarity between two lists

后端 未结 3 1366
遇见更好的自我
遇见更好的自我 2020-12-31 16:03

I\'d like to compute the similarity between two lists of various lengths.

eg:

listA = [\'apple\', \'orange\', \'apple\', \'apple\', \'banana\', \'ora         


        
3条回答
  •  感动是毒
    2020-12-31 16:38

    I believe what you are looking for is to counting the number of inversions in an array The question has your answer: Counting inversions in an array

提交回复
热议问题