摘要: 输入一个链表的头节点,从尾到头反过来返回每个节点的值(用数组返回)。 示例 1: 输入:head = [1,3,2] 输出:[2,3,1] 限制: 0 <= 链表长度 <= 10000 作者:Krahets 链接:https://leetcode-cn.com/leetbook/read/illus 阅读全文
posted @ 2021-02-05 15:19 hqzxwm 阅读(37) 评论(0) 推荐(0)
摘要: 请实现一个函数,把字符串 s 中的每个空格替换成"%20"。 示例 1: 输入:s = "We are happy." 输出:"We%20are%20happy." 限制: 0 <= s 的长度 <= 10000 作者:Krahets 链接:https://leetcode-cn.com/leetb 阅读全文
posted @ 2021-02-05 15:14 hqzxwm 阅读(40) 评论(0) 推荐(0)