Check Substring

Easy

📝 Description

Check if one string is a substring of another

Input Format

Two strings str1 and str2

Output Format

"Yes" or "No"

Constraints

1 ≤ str1.length, str2.length ≤ 100

🔍 Sample Input

"hello world"
"world"
            

✅ Sample Output

Yes
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run