Closed RedHeadphone closed 6 months ago
Joyce_Ndisya commented: Hello,
Your reported issue has been relayed to our team for thorough investigation. We appreciate your patience as we work to address and resolve this matter. We will reach out to you when we have updates regarding the issue.
If you have any further questions or concerns in the meantime, please feel free to let us know.
Best regards, LeetCode Support Team
Joyce_Ndisya commented: Thank you for your time.
Your feedback has been used to enhance the problem. As a token of our appreciation, your LeetCode account has been credited with 100 LeetCoins.
If you have any more questions or additional feedback, please don't hesitate to let us know. Your continued support is invaluable to us!
Best regards, The LeetCode Team
LeetCode Username
RedHeadphone
Problem Number, Title, and Link
Bug Category
Missing test case (Incorrect/Inefficient Code getting accepted because of missing test cases)
Bug Description
The solution that I submitted during the contest, has a time complexity of O(n*n) but it got accepted. My Solution used Dijstra to greedily select edges with the least distance from node
0
until it reaches then-1
node and then it traverses back marking all the edges as part of the shortest path. For the graph like below it is traversing back the same edges again and again.Language Used for Code
Python/Python3
Code used for Submit/Run operation
Expected behavior
This solution was expected to give me a Time Limit Exceeded, but it was accepted. I generated a test case that gives TLE, I have attached the python script and the test case below.
Test gen python script:
test case: input.txt
Screenshots
Additional context
No response