歡迎加入開源項目,提你的 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;});}
};