InterviewDB
Experience
·
Los Angeles
Word Length Distribution: Compute and Display the Frequency Distribution of Word Lengths
Onsite
Interview Experience
Round 1 - Coding Problem Given a block of text, compute the frequency distribution of word lengths. Return a sorted list of (length, count) pairs and render a simple ASCII histogram. Example Follow-ups What counts as a "word"? How do you handle punctuation attached to words like "fox," or "dog."? How would you normalize the histogram so bars represent percentages instead of raw counts? How does the output change for very long words (length 20+) — does your histogram stay readable? Extend this to…
Full Details
🔒
Unlock all Ramp 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 ramp interview during the onsite round.