leetcode_problem_rating

repository·main·Indexed 20 days ago

https://github.com/zerotrac/leetcode_problem_rating

A project providing difficulty ratings for LeetCode contest problems using Elo rating and Maximum Likelihood Estimation (MLE). It includes a frontend interface and a weekly updated raw data export in ratings.txt, with ratings derived from web crawlers.

Tokens
349
Snippets
1
Records
2
Agent score
22%

What's inside leetcode_problem_rating

  1. Overview of LeetCode Problem Rating Project

    main

    The LeetCode Problem Rating Project provides a frontend interface to view the difficulty ratings of LeetCode contest problems. These ratings are calculated using the Elo rating system and Maximum Likelihood Estimation (MLE) based on contest performance data.

    Key details:

    • Deployment: The frontend is available at https://zerotrac.github.io/leetcode_problem_rating/.
    • Data Source: Ratings are derived from web crawlers. Due to API variations, problems from the 1st to 62nd weekly contests are not included.
    • Raw Data: A text file containing the raw data sorted in descending order is maintained at ratings.txt and is updated weekly after contests.
  2. Configure the development server proxy in vue.config.js

    main

    The project uses a Vue CLI configuration to proxy requests for /data.json during development. This allows the local development server to fetch data from the remote source https://zerotrac.github.io/leetcode_problem_rating without CORS issues. When running in production, the publicPath is set to ./ to ensure relative asset loading.

    devServer: {
      proxy: {
        "/data.json": {
          target: "https://zerotrac.github.io/leetcode_problem_rating",
          secure: false,
        },
      },
    }