Halloween Sale
Unlock all premium questions for over 30% off
Count Distinct Password Variants
Easy
Question
Because weak passwords are easy to crack, developers keep coming up with new ways to rate how strong a password is. One new idea scores a password by its "variability": how many different strings can be produced by taking the original password and reversing exactly one contiguous substring of it. ...
Asked at:Amazon
More Amazon interview questions
- Get Daily Total Requestsmedium
- Find Minimum Reverse Operationsmedium
- Simplified Regex Pattern Matchinghard
- Count Idle Driveseasy
- Test Array Generation Serviceeasy
- Maximum Balanced Shipment Countmedium
- Detect Obfuscated Abusive Wordshard
- Merge Values Into Contiguous Blockshard
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.