摘要: 来源:力扣(LeetCode)链接:https://leetcode.cn/problems/valid-parentheses著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 题目: 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否 阅读全文
posted @ 2022-06-26 15:02 Tiancfq 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode.cn/problems/letter-combinations-of-a-phone-number 分割线:这道题我一开始的思路想到了用hashmap来做数字和字母的对应,但是没有想到具体如何来做。看了题解后,对于用队列的方式来做 阅读全文
posted @ 2022-06-26 11:15 Tiancfq 阅读(23) 评论(0) 推荐(0) 编辑