Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
03
:
13
:
51
Back to Dashboard
Article Ranking System
Medium
Design an article ranking system for a news platform. The system stores articles identified by a unique integer ID, a relevance score, and a category string. Implement the ArticleRanker class with the following operations:
addArticle(id, score, category)-- Add an article to the system. Returnstrueif the article was added successfully,falseif an article with the sameidalready exists. ...