Update a source
Current list
Fused ranking
Positions 1–5 earn 8, 5, 3, 2, 1 points. Equal totals sort by ascending document ID.
Run this state in C++17
This example updates as you edit. Save it as example.cpp in the RankPatch checkout, then run the command below.
c++ -O3 -std=c++17 -Iinclude example.cpp -o example && ./example
In-browser JavaScript reference implementation. Scores are recomputed locally after each change.