Files
coding-practice/problems/3227-vowels-game-in-a-string/csharp/Program.cs

25 lines
443 B
C#

// LeetCode 3227: Vowels Game In A String
// 難度: Medium
// 日期: 2025-09-12
using System;
using System.Collections.Generic;
using System.Linq;
public class Solution {
public bool DoesAliceWin(string s)
{
string vowels = "aeiou";
foreach (var character in s)
{
if (vowels.Contains(character))
{
return true;
}
}
return false;
}
}