摘要: 题目内容 Reverse a linked list from position m to n. Do it in one pass. Example: 分析过程 题目归类: 链表,递归方式链表 题目分析: 本题目的是控制链表的部分反转,我采用的方法是修改了递归链表反转算法 边界分析: 空值分析 循 阅读全文
posted @ 2020-02-14 18:18 clnsx 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Reverse a singly linked list. Example: 分析过程 题目归类: 题目分析: 边界分析: 空值分析 循环边界分析 方法分析: 数据结构分析 状态机 状态转移方程 最优解 测试用例构建 代码实现 非递归 递归 效率提高 拓展问题 Reverse Linked 阅读全文
posted @ 2020-02-14 15:55 clnsx 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given a non empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example: 分析过程 题目归类: 回文题目。 题目分析: 本题归 阅读全文
posted @ 2020-02-14 14:42 clnsx 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目内容 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this probl 阅读全文
posted @ 2020-02-14 11:53 clnsx 阅读(89) 评论(0) 推荐(0) 编辑