LeetCode-Feedback / LeetCode-Feedback

663 stars 315 forks source link

[BUG] - 392. Is Subsequence - Missing Testcase and Incorrect answer on Expected Output #24070

Closed zavavthm closed 1 week ago

zavavthm commented 1 week ago

LeetCode Username

ManikMalhotra

Problem Number, Title, and Link

https://leetcode.com/problems/is-subsequence/description/?envType=study-plan-v2&envId=leetcode-75

Bug Category

Incorrect test case (Output of test case is incorrect as per the problem statement)

Bug Description

Consider a custom Testcase,

s = "ab"
t = "adsgngkb"

As per the definition of subsequence in the question, since the relative positions of the characters are maintained. Therefore, s must be a subsequence of t. Hence the Expected Output should be true.

But the expected output generated is False.

Correct Output should be:

true

Language Used for Code

Python/Python3

Code used for Submit/Run operation

No response

Expected behavior

Function must return True for the custom testcase instead of False

Screenshots

image

Additional context

Add this testcase:

s = "ab"
t = "adsgngkb"

Expected Output:

true
exalate-issue-sync[bot] commented 1 week ago

LeetCode Support commented: It seems that the code used for the submission or run operation is missing from your report. Please provide the code used so that we can better understand the issue. Thank you for your cooperation.

LeetCode Support Team.

zavavthm commented 1 week ago

There was a mistake in testing the code. It's resolved.

Closing this Bug.

Apologies for inconvenience.