摘要:
题目内容 Reverse a linked list from position m to n. Do it in one pass. Example: 分析过程 题目归类: 链表,递归方式链表 题目分析: 本题目的是控制链表的部分反转,我采用的方法是修改了递归链表反转算法 边界分析: 空值分析 循 阅读全文
摘要:
题目内容 Given a non empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example: 分析过程 题目归类: 回文题目。 题目分析: 本题归 阅读全文
摘要:
题目内容 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this probl 阅读全文
摘要:
题目内容 Given a singly linked list, determine if it is a palindrome. Example: 分析过程 题目归类: 链表反转,fast/slow双指针法 题目分析: 这道题归到easy其实是不对的,应该归到medium,因为如果要考虑O(n)时 阅读全文