leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE | |
commit | b829c7454fe67818bb280544ae9bedfc78b2ca88 |
parent | d883c7cf58e057c9e9bb6feb2856652401d83207 |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Tue, 20 Aug 2024 18:51:58 +0200 |
1 Random Problem
Diffstat:A | Problems/3227.cpp | | | ++++++++++++++ |
M | README.md | | | + |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/Problems/3227.cpp b/Problems/3227.cpp
@@ -0,0 +1,14 @@
class Solution {
public:
bool doesAliceWin(const string &s) const {
for (const char c : s) {
if (c == 'a') return true;
if (c == 'e') return true;
if (c == 'i') return true;
if (c == 'o') return true;
if (c == 'u') return true;
}
return false;
}
};
diff --git a/README.md b/README.md
@@ -1322,5 +1322,6 @@ for solving problems.
| 3195 | Medium | [Find the Minimum Area to Cover All Ones I](Problems/3195.cpp) |
| 3211 | Medium | [Generate Binary Strings Without Adjacent Zeros](Problems/3211.cpp) |
| 3212 | Medium | [Count Submatrices With Equal Frequency of X and Y](Problems/3212.cpp) |
| 3227 | Medium | [Vowels Game in a String](Problems/3227.cpp) |
| 3228 | Medium | [Maximum Number of Operations to Move Ones to the End](Problems/3228.cpp) |
| 3239 | Medium | [Minimum Number of Flips to Make Binary Grid Palindromic I](Problems/3239.cpp) |