Interview
Question Bank
Interview Questions
Referral Contact Lists
• New
Interview Assistant
Support
Sign In
Toggle theme
Home
Question
Software Engineer
Technical
Google
they asked me to code for such a question: the input was a string and I was supposed to output the longest sub string with only 2 distinct chars in the sub string.
April 22, 2025
Generate AI Answer