Reciprocal Rank Fusion
Return IDs ordered by reciprocal-rank-fusion score using 1/(k+rank). Break ties lexicographically by string form.
Examples
EXAMPLE WALKTHROUGHtwo lists
A guided view of the published example, not a trace of your code.
INPUT
[[["a","b"],["b","c"]],60]TASKrrf()
EXPECTED OUTPUT
["b","a","c"]Start with the input values shown in this example.
Example 1 of 2
Input: rankings = [["a","b"],["b","c"]], k = 60
Output: ["b","a","c"]
Explanation: two lists
Input: rankings = [[]], k = 60
Output: []
Explanation: empty
Hint 1
Accumulate a score for every ID across lists.