The-CodingSloth / haha-funny-leetcode-extension

MIT License
396 stars 75 forks source link

Modify the generateRandomLeetCodeProblem function to reduce the chance of an already solved problem #33

Open The-CodingSloth opened 10 months ago

The-CodingSloth commented 10 months ago

Modify this function to take into account the user's already solved problem (not sure based on solved extension problems or leetcode submissions) From then make a randomize system to lower the chance to get the same problem. Edge case: If by some miracle they get the same problem they solved yesterday, change the problem (might need to have a previousProblem in the storage for this, just to make it easy) If you guys have any other suggestions/ideas put a comment here