Loading

摘要: 题目链接:https://leetcode-cn.com/problems/reverse-vowels-of-a-string/ 双指针法,一个从前向后,一个从后向前,遍历条件和交换条件都是i<j,一旦i=j就退出 class Solution { public: string reverseVo 阅读全文
posted @ 2021-08-19 12:30 泠枫Jun 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/student-attendance-record-ii/ 昨天的题目是直接给出字符串让你判断,而且长度较小,今天的出勤记录的长度变得很大,并且不是直接给你字符串,而是需要你统计在给定出勤记录长度下可以获得奖励的所有排列数量 阅读全文
posted @ 2021-08-19 00:21 泠枫Jun 阅读(74) 评论(0) 推荐(0) 编辑