[#3227] feat(leetcode): add c# and golang solution
This commit is contained in:
24
problems/3227-vowels-game-in-a-string/csharp/Program.cs
Normal file
24
problems/3227-vowels-game-in-a-string/csharp/Program.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user