1p3a_oj Question

Find the Most Common N-grams

Question Details

Given a document string and a list of integers nlist, for each n in nlist, compute the most frequent n-gram in the document. Implement a function find_most_common_ngrams(doc: str, nlist: List[int])

Full Details

🔒

Unlock all Xai questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a xai interview for a swe role during the coding round.

It covers the following topics: Strings, Hash Table .