# C++ Memory Management C++ 内存管理

Problem C++ has several distinct memory areas where objects and non-object values may be stored, and each area has different characteristics. Name as many of the distinct memory areas as you can. Fo...

# [LeetCode] 01矩阵中最大正方形 Maximal Square

Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given the following matrix: 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 Re...

# [LeetCode] Count Complete Tree Nodes

Given a complete binary tree, count the number of nodes. 思路： 找到最左边的节点和最右边的节点，如果二者高度一致，那么说明最后一层是满的，返回2^h-1。否则，递归下去。 代码： int countNodes(TreeNode* root) { if(!root) return 0;...

# [LeetCode] Fraction to Recurring Decimal

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses. For e...

# [LeetCode] Insert Interval 插入区间

Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start times. Exam...

# 最大重叠区间数目 Maximum number of overlapping intervals

384条 共26页1 2 3 4 5 ... 下一页 尾页
个人资料
• 访问：599727次
• 积分：9208
• 等级：
• 排名：第2229名
• 原创：279篇
• 转载：86篇
• 译文：19篇
• 评论：38条
阅读排行
最新评论