← Questions

Top three categories by total score

0
MetaCodingLast asked Dec 2025

You get a list of (category, score) tuples. Add up the score of each category and return the best total you can get from at most three categories (the three highest totals). Follow-up: do it without heapq.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding