</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

45

:

34

Get this deal
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. Returns true if the article was added successfully, false if an article with the same id already exists. ...