When the user loads a question they have already worked on or submitted, the previous code is automatically loaded in. They can also access the solutions tab and their previous submissions tab.
Reset code editor solutions:
- Clear code history in storage
- Replace editor text in DOM with fetched default text
- Trigger LeetCode's editor reset
Hide solutions/submission solution:
When the user loads a question they have already worked on or submitted, the previous code is automatically loaded in. They can also access the solutions tab and their previous submissions tab.
Reset code editor solutions:
Hide solutions/submission solution: