← Flipkart questions

Find longest common substring

Filed under Flipkart · Also reported at Optum (UnitedHealth Group)

Given two strings text1 and text2, return the length of their longest common substring. If no common substring exists, return 0.

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

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