← Zomato questions
CodingReported in a candidate post, Jul 2025

Longest Common Subsequence with a unique-characters optimization

Filed under Zomato

Find the length of the Longest Common Subsequence (LCS) of two strings. Follow-ups: why can the general problem not be optimised below O(n^2), and how can it be solved faster when each string has…

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

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