From 5afedfe1ecee2cb37ea1a76fcbe6f1717c6da0f7 Mon Sep 17 00:00:00 2001 From: JJ GENJI <226239237+anya-minamoto@users.noreply.github.com> Date: Tue, 16 Sep 2025 22:00:47 +0800 Subject: [PATCH 1/2] Add C++ solution for 420. Strong Password Checker --- C++/420-strong-password-checker.cpp | 64 +++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 C++/420-strong-password-checker.cpp diff --git a/C++/420-strong-password-checker.cpp b/C++/420-strong-password-checker.cpp new file mode 100644 index 0000000..f761bb9 --- /dev/null +++ b/C++/420-strong-password-checker.cpp @@ -0,0 +1,64 @@ +// 420-strong-password-checker.cpp +// Problem: https://leetcode.com/problems/strong-password-checker/ +// + +class Solution { +public: + int strongPasswordChecker(string password) { + int x = password.size(); + bool lower = false; + bool upper = false; + bool digit = false; + + for(char i:password){ + if(islower(i)){ + lower = true; + } + if (isupper(i)){ + upper = true; + } + if(isdigit(i)){ + digit = true; + } + } + + int miss = !lower + !upper + !digit; + int change = 0; + int one = 0; + int two = 0; + + for (int i =2;i Date: Tue, 16 Sep 2025 22:24:50 +0800 Subject: [PATCH 2/2] Update README.md (added to contributor) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 85accc7..9244b88 100644 --- a/README.md +++ b/README.md @@ -476,6 +476,7 @@ DISCLAIMER: This above mentioned resources have affiliate links, which means if | Name | Country | Programming Language | Where to find you
(add all links to your profiles eg on Hackerrank, Codechef, LeetCode...) | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Genji J](https://github.com/anya-minamoto)
| Indonesia | C++ | [GitHub](https://github.com/anya-minamoto)
[LeetCode](https://leetcode.com/u/anya-minamoto/) | | [Gourav R](https://github.com/GouravRusiya30/)
| India | Java | [codedecks](https://www.youtube.com/c/codedecks/)
[Hackerrank](https://www.hackerrank.com/gouravrusiya786)
[LeetCode](https://leetcode.com/rusiya/) | | [Dima Vishnevetsky](https://github.com/dimshik100)
| Israel | JavaScript | [Twitter](https://twitter.com/dimshik100)
[Facebook](https://www.facebook.com/dimshik) | | [Anuj Sharma](https://github.com/Optider/)
| India | Python | [Github](https://github.com/Optider) |