Closed ShaishavJogani closed 1 month ago
Hello,
Thank you for reaching out to us.
Your reported issue has been promptly relayed to our dedicated team for thorough investigation. We appreciate your patience and understanding as we work to address and resolve this matter.
Rest assured, we will reach out to you as soon as we have the results and updates regarding the issue.
Once again, thank you for your support and cooperation. If you have any further questions or concerns in the meantime, please feel free to let us know.
Best regards, LeetCode Support Team
LeetCode Username
shaishavjogani
Problem number, title, and link
Category of the bug
Description of the bug
It is missing the test cases. The problem ask to find substring of size 2 which also exists in it's reverse.
It is missing testcase like this "abcdefba" where first two char and last char of string satisfies the condtion. However, I tried to submit incorrect code which basically checks for palindrome substring of size 2 or 3. It was accepted even though it is wrong.
Language used for code
JAVA
Code used for Submit/Run operation
Expected behavior
Input: "abcdefgba" Expected output: true Actual output: false
Input: "abdrpdbko" Expected output: true Actual output: false
It should fail, but code got accepted.
Additional context
https://leetcode.com/problems/existence-of-a-substring-in-a-string-and-its-reverse/submissions/1205974345/