摘要: Problem: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are 阅读全文
posted @ 2020-10-04 18:20 tao10203 阅读(197) 评论(0) 推荐(0)
摘要: 题目 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。要求:空间复杂度 O(1) 示例 1: 输入:s = "We are happy."输出:"We%20are%20happy." 限制: 0 <= s 的长度 <= 10000 思路 题目要求空间复杂度为O(1),所以不能通过新建字符 阅读全文
posted @ 2020-10-04 15:58 tao10203 阅读(126) 评论(0) 推荐(0)