hermit_parth's blog

By hermit_parth, history, 4 months ago, In English

Hi,

I wrote a simple Tampermonkey script that adds a POTD (Problem of the Day) button on Codeforces.
Clicking it will give you a problem with a rating similar to your current rating.

Links:
- Download Script (GreasyFork)
- GitHub Repo


DESIGN CHOICES

  1. Minimize API Calls During Contests
    All API calls are done only when clicking "POTD", making the button slightly slower to respond, but keeping page refresh fast and lag-free during contests.

  2. User-Specific POTD
    Each user gets a different POTD, depending on their current rating (curr_rating).

  3. Rating Range
    POTD will be in the range: [curr_rating - neg_delta*100, curr_rating + pos_delta*100]

  • curr_rating is rounded down.
  • Example: If a user's rating is 1650, POTD can be one of [1400, 1500, 1600, 1700, 1800].
  • You can change the distribution by modifying the neg_delta and pos_delta constants.
  1. Unsolved Problems Only
    POTD will always be an unsolved problem, unlike LeetCode where POTD can be already solved.
    This ensures a truly user-specific challenge.

  2. Regenerating POTD
    After solving a POTD, clicking the button again gives a new unsolved problem.
    This makes the POTD button work as both a Problem of the Day and a random problem generator.


If you have any feedback or feature requests, let me know—I’ll try to add them!

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by hermit_parth (previous revision, new revision, compare).

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

it would be great if we also could select what topic questions we would like to have