Replace Leetcode problem's difficulty with a more precise contest rating sourced from zerotrac.
The green/yellow/red text color is preserved, so you can still tell the official difficulty.
Problems in 1st-62nd weekly contests and problems that did not come from contests don’t have zerotrac rating data and "N/A" is shown by default. To show the original rating, click the extension icon on the top right of the browser and disable "Show N/A if no rating is available".
Optionally, ratings missing from zerotrac can be looked up from clist.by (rate limited, so it may take a few seconds to show). In the extension popup, turn on "Look up missing ratings on clist.by", paste your clist.by API key (shown as username:key), and allow access to clist.by when the browser asks. Ratings from clist.by are shown with a c suffix (e.g. 1275c), and hovering a rating shows where it came from.
Both sources use Elo: a problem's rating is the rating of a person who solves it half the time. clist.by counts people with more past contests more heavily, and also looks at how well each person did in that contest. So a c rating and a plain rating can differ for problems of the same difficulty.
- Clone this repository
- Open the browser and go to
chrome://extensions/ - Enable
Developer modeon the top-right - Click
Load unpackedon the top-left - Select the cloned repository
- Ratings are based on https://github.com/zerotrac/leetcode_problem_rating
- Optional ratings from https://clist.by



