11 2020 档案

摘要:参考:labuladong 问题: 判断一个链表,是否为回文链表。 Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true 解法: 解法一:Linked List Traverse 链表遍历(后序遍 阅读全文
posted @ 2020-11-22 09:41 habibah_chang 编辑
摘要:问题: 给定一个字符串,求最少添加几个字母,能使的字符串成为回文字符串。 Example 1: Input: s = "zzazz" Output: 0 Explanation: The string "zzazz" is already palindrome we don't need any i 阅读全文
posted @ 2020-11-15 12:20 habibah_chang 编辑

点击右上角即可分享
微信分享提示