← Questions

Transitive synonym groups from word contexts

0
GleanCodingLast asked Sep 2026

A coding interview question asked in Glean's coding round, last asked Sep 2026. It tests union-find, graphs and nlp.

You get a list of sentences. Two different words are synonyms if some occurrence of each has the same context: the same two words right before it and the same two words right after it.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Glean · Coding · Last asked Sep 2026Live coding, usually two rounds

What it tests

union-find · graphs · nlp

Your code and the AI tutor open when you unlock this question.