摘要: const与指针 当 限定符与指针结合的时候,经常会让人迷惑。本文根据《C++ Primer》上给出的一些解释谈谈自己的理解: 指向常量的指针(pointer to const) 先来看一则书上的示例: 上述示例中, 就是一个指向常量的指针,不能用于改变指向的对象的值。 而要存放一个常量的地址,只能 阅读全文
posted @ 2018-01-29 16:40 言何午 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Reverse Linked List II 题解 题目来源:https://leetcode.com/problems/reverse linked list ii/description/ Description Reverse a linked list from position m to 阅读全文
posted @ 2018-01-29 15:05 言何午 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Reverse Linked List 题解 题目来源:https://leetcode.com/problems/reverse linked list/description/ Description Reverse a singly linked list. Solution 解题描述 这道题 阅读全文
posted @ 2018-01-29 13:09 言何午 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted List II 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted list ii/description/ Description Given a sor 阅读全文
posted @ 2018-01-29 11:35 言何午 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted List 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted list/description/ Description Given a sorted li 阅读全文
posted @ 2018-01-29 10:50 言何午 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted Array II 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted array ii/description/ Description Follow up 阅读全文
posted @ 2018-01-29 10:08 言何午 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Palindrome Number 题解 题目来源:https://leetcode.com/problems/palindrome number/description/ Description Determine whether an integer is a palindrome. Do th 阅读全文
posted @ 2018-01-29 09:45 言何午 阅读(99) 评论(0) 推荐(0) 编辑