随笔分类 -  题解

题解、刷题
摘要:LeetCode1282.用户分组 模拟题 哈希表 阅读全文
posted @ 2022-08-13 17:43 r涤生 阅读(40) 评论(0) 推荐(0)
摘要:原题链接 写一个栈,保存消除之后的字符串. 一边枚举str一边更新这个栈 代码 #include<iostream> #include<stack> using namespace std; stack<char> stk; int main() { string s; cin >> s; bool 阅读全文
posted @ 2022-08-06 21:11 r涤生 阅读(32) 评论(0) 推荐(0)