码迷,mamicode.com
首页 >  
搜索关键字:vector    ( 11651个结果
leetcode 1. 两数之和
把top 100重新刷一遍 class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { unordered_map<int,int> um; for(int i=0;i<nums.size();++i) { ...
分类:其他好文   时间:2020-07-03 23:16:38    阅读次数:55
力扣(LeetCode)试题26-删除排序数组中的重复项 C++代码
ε=(´ο`*)))唉,继续加油,先实现功能 1 #include <iostream> 2 #include <vector> 3 4 using namespace std; 5 6 class Solution { 7 public: 8 int removeDuplicates(vector ...
分类:编程语言   时间:2020-07-03 10:30:08    阅读次数:70
POJ 1089 Intervals
题目地址 简单的贪心,POJ不能用C11,硬是把C11的特性改回来了 代码 #include <algorithm> #include <iostream> #include <vector> using namespace std; const int INF = 1e9; struct node ...
分类:其他好文   时间:2020-07-03 00:43:01    阅读次数:63
Java容器
Java容器 容器主要包括Collection和Map两种,Collection存储着对象的集合,而Map存储着键值对(两个对象)的映射表。 Java中常用的线程安全的集合类有Vector、Hashtable、ConcurrentHashMap、Stack Set --TreeSet(有序):基于红 ...
分类:编程语言   时间:2020-07-02 22:13:53    阅读次数:93
A1103 Integer Factorization (30分)(DFS)
一、技术总结 这题是关于DFS即深度优先遍历算法,核心是掌握深度遍历算法的思想,也就是不断往下一个结点进行查找,如果查找不到,那么就返回; 关键点一个是递归边界,也就是查找不到的条件,以及能够往下查找的路有多少条; 二、参考代码 #include<iostream> #include<vector> ...
分类:其他好文   时间:2020-07-02 21:44:59    阅读次数:55
Redis快速入门教程(一): 介绍与部署
1.Redis介绍 Redis说白了就是个存放Key-Value数据接口的内存存储系统,主要用作数据库缓存和消息代理。 内部支持sring,hash,list,set,sorted-set五种数据结构。Redis支持Lua脚本,可以通过集群部署的方式实现高可用。 2.Redis安装 2.1 Wind ...
分类:其他好文   时间:2020-07-02 16:46:52    阅读次数:73
386. 字典序排数
给定一个整数 n, 返回从 1 到 n 的字典顺序。 例如, 给定 n =1 3,返回 [1,10,11,12,13,2,3,4,5,6,7,8,9] 。 请尽可能的优化算法的时间复杂度和空间复杂度。 输入的数据 n 小于等于 5,000,000。 vector<int>ans; class Sol ...
分类:其他好文   时间:2020-07-02 16:15:55    阅读次数:58
ACwing(基础)---789. 数的范围
789. 数的范围 #include<iostream> #include<vector> #include<algorithm> using namespace std; const int maxn =1e5+10; int a[maxn]; int main() { int n,m,x; ci ...
分类:Windows程序   时间:2020-07-02 13:28:58    阅读次数:71
ACwing(基础)--- 高精度
高精度加法 // C = A + B, A >= 0, B >= 0 #include<iostream> #include<vector> using namespace std; vector<int > add(vector<int > &A, vector<int > &B) { vecto ...
分类:Windows程序   时间:2020-07-02 13:22:29    阅读次数:249
滤镜 | mask (Scalable Vector Graphics) - CSS 中文开发手册 - Break易站
CSS 中文开发手册 滤镜 | mask (Scalable Vector Graphics) - CSS 中文开发手册 maskCSS属性通过部分或完全隐藏它改变的元件的可见性。这是通过在特定点掩蔽或裁剪图像来完成的。 /* Keyword values */mask: none;/* Image... ...
分类:Web程序   时间:2020-07-02 00:13:09    阅读次数:72
11651条   上一页 1 ... 43 44 45 46 47 ... 1166 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!