Code-dig-ger / Backend

This is the Backend open-source API developed to provide data to our Frontend React Website. Codedigger aims at accumulating the data of competitive programming platforms into one platform.
https://api.codedigger.tech
Apache License 2.0
13 stars 16 forks source link

Assign Problems to Codeforces Contest #112

Closed ShivamSinghal1 closed 2 years ago

ShivamSinghal1 commented 2 years ago

Assign Problems to Codeforces Contest for Extension.

Based on User Rating Select 5 Problems -

Steps - Filter Problems of Codeforces and Regular Contest

Filter and Exclude Problems that were solved by User

Select Problems in range +-200.

ShivamSinghal1 commented 2 years ago

/cib assign problems

github-actions[bot] commented 2 years ago

Branch issues/ShivamSinghal1/issue-112/assign-problems created!

ShivamSinghal1 commented 2 years ago

User Status - Seen Problem

Problem.objects.filter(platform = 'F' )

Gym Filter -> Contest Filter -> contest.objects.filter(Type = 'R' )

Make a list of all ids. contest.id

Problem.objects.filter(contest = contestsID)

After all Problem Filter Regular Contest Excluding seen problems

SolveProblemsAPIView - Read and Understand

-> Rating CodeforcesUser.rating

Problem Filter Select 5 Problems

( Rating % 100 == 0 ) => Random Rating

Difficulty None