Convert Simple Password to Complex

Problem Overview

  • Determine the minimum number of character insertions and deletions to transform a current password into a new password.
  • Input: two strings (current password, new password); Output: one integer for minimum updates; Constraints: not specified.
  • Real-world context: IT/security scenario to strengthen weak user passwords in a company setting.
  • From Cisco interviews; a classic coding interview problem and 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: