收藏收藏 电子书和资源查找:www.java1234.com/,还有各类的百度网盘搜索工具 程序员都知道的GitHub:github.com/ 博客平台:segmentfault.com/ 博客平台:juejin.im/timeline 菜鸟教程(前端):www.runoob.com/ 娱乐&学习网 ...
分类:
Web程序 时间:
2020-02-18 18:21:40
阅读次数:
89
[toc] ? 1200. 最小绝对差 描述 ? 897. 递增顺序查找树 描述 解答 cpp my dont compile pass: 指针问题? output: fuck ptr py ? 183. 从不订购的客户 https://leetcode cn.com/problems/custom ...
分类:
其他好文 时间:
2020-02-18 16:43:53
阅读次数:
82
解决并发情况下的容器线程安全问题的。给多线程环境准备一个线程安全的容器对象。 线程安全的容器对象: Vector, Hashtable。线程安全容器对象,都是使用 synchronized 方法实现的。 concurrent 包中的同步容器,大多数是使用系统底层技术实现的线程安全。类似 native ...
分类:
编程语言 时间:
2020-02-18 16:38:54
阅读次数:
80
最小栈。题意是设计一个栈,包括如下几个函数。 push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. top() -- Get the top element. getMin() ...
分类:
其他好文 时间:
2020-02-18 10:07:23
阅读次数:
67
Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the or ...
分类:
其他好文 时间:
2020-02-17 23:42:05
阅读次数:
71
一、目录展示 二、导入依赖 <dependency> <groupId>com.alibaba.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>3.0.10</version> </dependency> <d ...
分类:
编程语言 时间:
2020-02-17 18:18:45
阅读次数:
131
集合 框架关系图: Collection接口下面有三个子接口:List、Set、Queue。此篇是关于Queue<E>的简单学习总结。 Queue: Queue(队列):是一种特殊的链型结构,它的特点是先进先出(FIFO),通常只在尾部插入,头部删除,它经常和Stack(栈)进行比较,但Stack的 ...
分类:
其他好文 时间:
2020-02-17 17:46:41
阅读次数:
59
用以下代码做实验 import time import cv2 as cv import glob import argparse import sys import numpy as np import os.path from collections import deque from skle ...
分类:
其他好文 时间:
2020-02-17 16:14:35
阅读次数:
407
1.vector 2.queue 3.stack 4.map 5.set 6.多组输入输出问题 详解见代码以及注释: //学习STL的使用 #include <bits/stdc++.h> using namespace std; int main(){ // 1.使用vector // vecto ...
分类:
其他好文 时间:
2020-02-16 14:36:02
阅读次数:
64
计算四则表达式 如 1 10 (10 10) 12,输出对应的结果 思路 这是一条比较常规的栈的题目,将中缀表达式转换为后缀,在编码过程中,有几个点犯了错误 1、中缀转后缀时,运算符要和stack栈顶的优先级判断,如果优先级小于或等于栈顶,要把栈顶出栈 2、负号的判断,只有前面是括号或者是运算符,才 ...
分类:
其他好文 时间:
2020-02-16 12:41:56
阅读次数:
76