Sequence Pattern Matching
Easy

Problem Statement

Check if a string 'a' is a subsequence of another string 'b'.

Examples

1Example 1
Input:
{ "a": "AXY", "b": "ADXCPY" }
Output:
true
2Example 2
Input:
{ "a": "axc", "b": "ahbgdc" }
Output:
false
3Example 3
Input:
{ "a": "gksrek", "b": "geeksforgeeks" }
Output:
true
Loading...

Sign in to Run Code and Submit