摘要: 此博客链接: 链表翻转 题目链接:https://leetcode-cn.com/problems/reverse-linked-list/ 题目 给你单链表的头节点 head ,请你反转链表,并返回反转后的链表。 示例 1: 输入:head = [1,2,3,4,5]输出:[5,4,3,2,1]示 阅读全文
posted @ 2021-05-25 22:50 萍2樱释 阅读(75) 评论(1) 推荐(0) 编辑
摘要: 此博客链接: 整数转罗马数字 题目链接:https://leetcode-cn.com/problems/integer-to-roman/ 题目 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值I 1V 5X 10L 50C 100D 500M 1000例如, 罗马数 阅读全文
posted @ 2021-05-25 22:44 萍2樱释 阅读(65) 评论(0) 推荐(0) 编辑