摘要: 题目地址:https://leetcode-cn.com/problems/k-th-symbol-in-grammar/ 解题思路:找规律,第N行前半部分是第N-1行,后半部分是第N-1行按位取反。 class Solution { public: int kthGrammar(int N, in 阅读全文
posted @ 2020-10-21 18:26 CCxiao5 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 题目地址:https://leetcode-cn.com/problems/long-pressed-name/ 解题思路:暴力,判断返回false的几种情况。 class Solution { public: bool isLongPressedName(string name, string t 阅读全文
posted @ 2020-10-21 17:53 CCxiao5 阅读(67) 评论(0) 推荐(0) 编辑