← Google questions

String encoding iterator and genetic relationship checker

Filed under Google

Implement an iterator for a string encoded as 'a1b2c2' (meaning 'abbcc') with next() and hasNext() methods. Additionally, given a set of parent-child relations, determine if two nodes are genetically…

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

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