On LeetCode contest page, if you go to a problem and then go to my submissions, and click a previous submission and click edit code, the code you see is not the code submitted in that submission but the most recently submitted code.
Screenshots
Problem Page:
My submissions Page:
Previous submission page (the one with WA):
Page opened after clicking on edit code:
You can see that the code from line 23 is different in the last two images.
This is very frustrating in the contest when you are trying different approaches and suddenly realize that a slight modification in a previous submission could solve the problem and forget that Edit Code doesn't work.
Your LeetCode username
gautamsw5
Category of the bug
Description of the bug
On LeetCode contest page, if you go to a problem and then go to my submissions, and click a previous submission and click edit code, the code you see is not the code submitted in that submission but the most recently submitted code.
Screenshots
Problem Page:
My submissions Page:
Previous submission page (the one with WA):
Page opened after clicking on edit code:
You can see that the code from line 23 is different in the last two images.
This is very frustrating in the contest when you are trying different approaches and suddenly realize that a slight modification in a previous submission could solve the problem and forget that Edit Code doesn't work.