Quick Overview

Count case-insensitive ASCII words in a paragraph and return deterministic frequency rankings. Tokenize maximal letter runs, normalize to lowercase, sort by descending count then ascending word, and handle punctuation, repeated delimiters, empty input, and very large text in one scan.

Count and Rank Words in a Paragraph

Company: Robinhood

Role: Backend Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Count case-insensitive ASCII words in a paragraph and return deterministic frequency rankings. Tokenize maximal letter runs, normalize to lowercase, sort by descending count then ascending word, and handle punctuation, repeated delimiters, empty input, and very large text in one scan.

Read the full Robinhood Backend Engineer interview experience this question came from

Loading…