companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Easy

Find the Index of the First Occurrence in a String

46.7% acceptance · asked by 15 companies

Solve on LeetCode
StringTwo PointersString Matching

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Pocket Gems100Tcs75Qualcomm75LG Electronics75Expedia

Related problems

Valid Parentheses
Easy
Longest Substring Without Repeating Characters
Medium
Group Anagrams
Medium
Longest Palindromic Substring
Medium
Longest Common Prefix
Easy
63
Amazon63
Apple63
Bloomberg63
Capgemini63
Microsoft63
Zoho50
Google50
Meta50
Infosys38
Linkedin25