String Starts With
Medium📝 Description
Check if a string starts with a given prefix
Input Format
String and prefix
Output Format
"Yes" or "No"
Constraints
1 ≤ string.length, prefix.length ≤ 100
🔍 Sample Input
"hello"
"he"
✅ Sample Output
Yes
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run