# [置顶] STL中的智能指针(Smart Pointer)及其源码剖析： std::unique_ptr

STL中的智能指针(Smart Pointer)及其源码剖析： std::unique_ptr 和 std::auto_ptr一样，std::unique_ptr也是一种智能指针，它也是通过指针的方式来管理对象资源，并且在 unique_ptr 的生命期结束后释放该资源。 unique_ptr ...

# [置顶] STL中的智能指针(Smart Pointer)及其源码剖析： std::auto_ptr

STL中的智能指针(Smart Pointer)及其源码剖析： std::auto_ptr 本文主要介绍了 auto_ptr的使用及其源码。 auto_ptr是STL中的智能指针家族的成员之一, 它管理由new expression获得的对象，在auto_ptr对象销毁时，他所管理的对象也会自...

# LeetCode: 101. Symmetric Tree

LeetCode: 101. Symmetric Tree 题目描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, thi...

# LeetCode: 99. Recover Binary Search Tree

LeetCode: 99. Recover Binary Search Tree 题目描述 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing...

# LeetCode: 98. Validate Binary Search Tree

LeetCode: 98. Validate Binary Search Tree 题目描述 Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined a...

# LeetCode: 95. Unique Binary Search Trees II

LeetCode: 95. Unique Binary Search Trees II 题目描述 Given an integer n, generate all structurally unique BST’s (binary search trees) that store valu...

# LeetCode: 94. Binary Tree Inorder Traversal

LeetCode: 94. Binary Tree Inorder Traversal 题目描述 Given a binary tree, return the inorder traversal of its nodes’ values. For example: Given binar...

# LeetCode: 93. Restore IP Addresses

LeetCode: 93. Restore IP Addresses 题目描述 Given a string containing only digits, restore it by returning all possible valid IP address combinations. ...

# LeetCode: 92. Reverse Linked List II

LeetCode: 92. Reverse Linked List II 题目描述 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1-&a...

# LeetCode: 91. Decode Ways

LeetCode: 91. Decode Ways 题目描述 A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -&amp;gt...

# LeetCode:90. Subsets II

LeetCode: 90. Subsets II 题目描述 Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Not...

# LeetCode: 89. Gray Code

LeetCode:89. Gray Code 题目描述 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative inte...

# LeetCode: 88. Merge Sorted Array

LeetCode: 88. Merge Sorted Array 题目描述 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may ...

# LeetCode: 87. Scramble String

LeetCode: 87. Scramble String 题目描述 Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursi...

# LeetCode: 86. Partition List

LeetCode: 86. Partition List 题目描述 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than ...

# LeetCode: 85. Maximal Rectangle

LeetCode: 85. Maximal Rectangle 题目描述 Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return it...

# LeetCode: 84. Largest Rectangle in Histogram

LeetCode: 84. Largest Rectangle in Histogram 题目描述 Given n non-negative integers representing the histogram’s bar height where the width of each bar...

# LeetCode: 83. Remove Duplicates from Sorted List

LeetCode: 83. Remove Duplicates from Sorted List 题目描述 Given a sorted linked list, delete all duplicates such that each element appear only once. F...

# LeetCode: 82. Remove Duplicates from Sorted List II

LeetCode: 82. Remove Duplicates from Sorted List II 题目描述 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only dis...

个人资料
等级：
访问量： 34万+
积分： 2506
排名： 1万+
友情链接
最新评论