Closed zavavthm closed 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.
There was a mistake in testing the code. It's resolved.
Closing this Bug.
Apologies for inconvenience.
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,
As per the definition of subsequence in the question, since the relative positions of the characters are maintained. Therefore,
s
must be a subsequence oft
. Hence the Expected Output should betrue
.But the expected output generated is
False
.Correct Output should be:
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 ofFalse
Screenshots
Additional context
Add this testcase:
Expected Output: