- Practice 1 : Write a Perl function that takes in a password and checks whether it's valid
- Passwords must be at least 8 characters long.
- Between 8-11: requires mixed case letters, numbers and symbols
- Between 12-15: requires mixed case letters and numbers
- Between 16-19: requires mixed case letters
- 20+: any characters desired
- Practice 2 : Parentheses removal function by using any language
- f("1*(2+(3*(4+5)))") ===> "1*(2+3*(4+5))"
- f("2 + (3 / -5)") ===> "2 + 3 / -5"
- f("x+(y+z)+(t+(v+w))") ===> "x+y+z+t+v+w"
perl validate_password.pl
python3 remove_parenthesis.py
- ChatGpt
- Remove all redundant parenthesis