Encryption Validity
Problem Overview
- Decide if an attacker can crack an encryption within its validity period and return the encryption strength.
- Inputs: instructionCount (tests/sec), validityPeriod (sec), and an array of positive integer keys; Output: two integers [canCrack 1/0, strength].
- Strength: based on the key with the highest count of divisors from the set (divisors > 1), scaled by 10^5.
- Context: brute-force search vs. time-limited confidentiality in encryption.
- A Goldman interviews coding interview problem and common interview question.
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:
