leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Bug Report for decode-ways

Open chrisbuild124 opened this issue 2 months ago • 0 comments

Bug Report for https://neetcode.io/problems/decode-ways

First - HUGE fan of this channel :)

Ok so the bug is pretty simple that I've seen on most problems but I don't pay attention to it, so it could be on every problem I'm not sure. Whenever I hit "Run" to test my cases, the next screen always defaults to showing me the first test case, even if I have a different test case already clicked prior to hitting "Run".

For example, on this problem, I hit "run" while test case 2 is shown and this is displayed: Image

However, this is not test case 2, this is test case 1. After clicking a different test case, then back to case 2, test case 2 is displayed: Image

As for solutions, I'd try to cache the test case number I am currently clicked on so it doesn't default to 1 and still show I am looking at a different test case. Of course, if I am always starting on test case 1, it wouldn't appear I have any bugs. This can get a little annoying at times with adding custom test cases that aren't test case 1.

Thanks!

chrisbuild124 avatar Sep 30 '25 03:09 chrisbuild124