Find Password Strength (Fungible :)
Problem Overview
- Compute the password strength by summing the number of distinct characters for every substring of the given string.
- Input: String password; Output: int strength representing the total distinct-count sum; constraints not specified.
- Context: Password evaluation domain; defines a scoring metric based on substring uniqueness.
- This interview question is from Amazon interviews, suitable for a coding interview string-processing problem.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
