欢迎加入开源项目,提你的 mr
Go Commons:Golang 开发者的常用工具集,一站式解决常见需求
在 Go 语言的开发过程中,你是不是经常遇到这样的情况:
想要做点小功能,却得从零写起,或者到处找三方…
3227. 字符串元音游戏 题目链接:3227. 字符串元音游戏
代码如下:
class Solution {
public:bool doesAliceWin(string s) {return ranges::any_of(s, [](char c) {return c a || c e || c i || c o || c u;});}
};