CodingEasy
Find pattern in a circular string
Filed under Nokia
The question
Given a circular string `str`, find whether a target pattern string `ptr` exists within it. Provide an optimized approach.
No write-up yet. Related questions below have one.
Related Nokia questions
Collected from public candidate posts and coding forums. Updated Nov 2026.