← Questions

Count substrings whose characters are all distinct

0
NvidiaCodingLast asked Jul 2026

A coding interview question asked in Nvidia's coding round, last asked Jul 2026. It tests strings and sliding window.

Given a string, count its non-empty contiguous substrings in which no character appears twice. Substrings at different positions count separately, even if their text is the same.

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

  • Nvidia · Coding · Last asked Jul 2026Live coding, often C++-leaning; each round usually opens with 10 to 15 minutes on your past work · Assume no AI unless the interviewer offers it

What it tests

strings · sliding window

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