InterviewDB
Experience
Haiku Substring: Find Substrings Matching a 5-7-5 Syllable Pattern
Onsite
Interview Experience
Problem A haiku consists of three lines with syllable counts 5, 7, 5. You are given a sequence of words with known syllable counts. Find all contiguous subsequences of words that can be partitioned into three groups with syllable sums 5, 7, and 5 in order. Follow-ups How do you efficiently scan for valid 5-7-5 partitions using prefix sums? What if syllable counts are uncertain and vary by pronunciation — how do you enumerate possibilities? How would you extend this to detect other poetic forms (…
Full Details
🔒
Unlock all Faire questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a faire interview during the onsite round.
More Faire Interview Questions
InterviewDB
Ads Filter: Remove Advertisements from a List Based on Heuristics
InterviewDB
Date Format: Parse and Normalize Dates Across Multiple Input Formats
InterviewDB
Funnel Count: Compute Drop-Off at Each Step of a Conversion Funnel
InterviewDB
Split SMS: Break a Long Message into Valid SMS Segments
InterviewDB
Faire SWE Onsite - Tag Validation (Stack/Parsing)