The-CodingSloth / haha-funny-leetcode-extension

MIT License
396 stars 75 forks source link

When changing difficulties, store those problems. #48

Open The-CodingSloth opened 10 months ago

The-CodingSloth commented 10 months ago

Currently every time you switch difficulties you change the assigned problem. That's cheating the system of torture.

  1. Whenever the user changes difficulty store those problems into storage so it would be "assigned-easy-problem", "assigned-medium-problem", "assigned-hard-problem"
  2. Whenever we do updateStorage, we should check if there's already an assigned problem. If there isn't then we can generate a new one, but if there is use the one in storage.