โ† Oracle questions

Count substring occurrences

Filed under Oracle

Given two strings a and b, count the total number of non-overlapping occurrences of string b in string a. Clarify with the interviewer whether overlapping occurrences are counted if unspecified.

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 Oracle questions

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