← Paytm questions

Find sub string in a string

Filed under Paytm · Also reported at Compro Technologies

Implement a function to find the first occurrence of a target substring within a given string. Return the index of the first occurrence of the substring, or -1 if the substring is not part of the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.