leetcode 392 solution ( Is Subsequence )

preview_player
Показать описание
📌 ALWAYS check pinned comment.
🔔 TURN ON notification for new video updates.

Join our Patreon for Videos On Demand:

Follow us on linkedIn :

Join Our Discord:

DSA Playlist:

Spring Playlist:

Python Playlist:

--------------------------------------------------------------------------------------

#leetcode solutions python, leetcode solutions java, leetcode solutions c++, leetcode solutions java easy, leetcode solutions java in hindi, leetcode solutions easy, leetcode solutions java playlist, leetcode solutions array, leetcode solutions c sharp, leetcode solutions hindi, leetcode solutions dynamic programming, leetcode solutions telugu, leetcode solutions tamil, engineering digest,2022,2023,2024,is subsequence leetcode,is subsequence,leetcode 392,392. is subsequence,is subsequence python,is subsequence c++,is subsequence java,is subsequence solution,two pointer,cracking the coding interview problems,data structures and algorithms in java,data structures and algorithms playlist,data structures,coding interview questions,leetcode java,is subsequence leetcode solution,computer science
Рекомендации по теме
Комментарии
Автор

class Solution {
public:
bool isSubsequence(string s, string t) {
int i = 0, j =0;
while(i<s.size() && j<t.size()){
if(s[i] ==s[j]){
i++;
}
j++;
}
return i ==s.size();
}
};
sir it showing error in C++ for following condition
Input
"axc"
"ahbgdc"
Output
true
Expected
false
what is bug in c++ code please tell

Awm