</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Microsoft Questions

Lowercase Before Uppercase Letter Count

Medium

Question

Each character of s is a letter, written in lowercase or in uppercase. Treating 'x' and 'X' as the same letter, count how many distinct letters satisfy this condition: no lowercase copy of the letter shows up after the first uppercase copy of it. Whenever a letter is used in a single case throughout s, there is nothing to compare, and it meets the condition by default. ...

Asked at:Microsoft

More Microsoft interview questions

All Microsoft interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.