20. 有效的括号](https://leetcode-cn.com/problems/valid-parentheses/) class Solution { public boolean isValid(String s) { Map<Character, Character> map = ne ...
分类:
其他好文 时间:
2021-06-30 18:02:33
阅读次数:
0
1. 使用shouldComponentUpdate避免重复渲染 以下代码,只有在count为3的时候才会触发更新 class ClassChild extends React.Component { constructor() { super(); } render() { console.log ...
分类:
其他好文 时间:
2021-06-30 17:54:36
阅读次数:
0
此篇博客主要记录剑指offer中遇到的不会的题。 一、重建二叉树(剑指offer 07) medium 2021-06-22 输入某二叉树的前序遍历和中序遍历的结果,请重建该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。 解题思路:前序遍历的特点,根节点在第一位; 中序遍历的特点,根 ...
分类:
其他好文 时间:
2021-06-29 16:05:14
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/non-overlapping-intervals/submissions/ 题目描述: 题解: class Solution { public: static bool cmp(vector<int> &a, vector ...
分类:
其他好文 时间:
2021-06-29 16:04:44
阅读次数:
0
https://leetcode-cn.com/problems/largest-bst-subtree/ public int largestBSTSubtree(TreeNode root) { return (root == null) ? 0 : getInfo(root).size; } ...
分类:
其他好文 时间:
2021-06-29 15:58:52
阅读次数:
0
一、简介 1 直方图 再讲颜色直方图之前,先简单介绍一下直方图。 直方图作为一种简单有效的基于统计特性的特征描述子,在计算机视觉领域广泛使用。它的优点主要体现在两个方面:一是对于任意一个图像区域,直方图特征的提取简单方便;其二,直方图表征图像区域的统计特性,可以有效表示多模态的特征分布,并且本身具备 ...
分类:
其他好文 时间:
2021-06-28 21:02:07
阅读次数:
0
题目链接:用最少数量的箭引爆气球 题目描述: 题解: class Solution { public: static bool cmp(vector<int> &a, vector<int> &b) //按右边界排序 { return a[1] < b[1]; } int findMinArrowS ...
分类:
其他好文 时间:
2021-06-28 20:44:14
阅读次数:
0
Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order ...
分类:
其他好文 时间:
2021-06-28 20:35:29
阅读次数:
0
1.数据结构 1.1.数组与字符串 54.螺旋矩阵:\(\star\star\) 59.螺旋矩阵 II:\(\star\star\) 121.买卖股票的最佳时机:\(\star\) 215.数组中的第K个最大元素:\(\star\star\star\) 1.2.哈希表 HashMap方法 1.两数之 ...
分类:
其他好文 时间:
2021-06-28 20:31:13
阅读次数:
0
//gcInterface为控件名称 if (gcInterface.InvokeRequired) { gcInterface.BeginInvoke((MethodInvoker)delegate { dtConfig.Rows[index]["count"] = count; dtConfig ...
分类:
编程语言 时间:
2021-06-28 19:57:18
阅读次数:
0