A password is considered strong if it satisfies all of the following conditions:
It has at least
It contains at least one lowercase English letter.
It contains at least one uppercase English letter.
It contains at least one digit.
It contains at least one special character from "!@#$%^&*()-+".
It does not contain two identical characters in adjacent positions (that is, password[i] != password[i + 1] for all valid indices i).
Given a string password, return true if it is a strong password, or false otherwise.
Constraints:
password.length
password consists of letters, digits, and special characters: "!@#$%^&*()-+".
A password is considered strong if it satisfies all of the following conditions:
It has at least
It contains at least one lowercase English letter.
It contains at least one uppercase English letter.
It contains at least one digit.
It contains at least one special character from "!@#$%^&*()-+".
It does not contain two identical characters in adjacent positions (that is, password[i] != password[i + 1] for all valid indices i).
Given a string password, return true if it is a strong password, or false otherwise.
Constraints:
password.length
password consists of letters, digits, and special characters: "!@#$%^&*()-+".