码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
Leetcode题解-双指针
学习自:CS-Note Leetcode 题解 - 双指针 1、有序数组的Two Sum 167. 两数之和 II - 输入有序数组 题目描述: 给定一个已按照 升序排列 的整数数组 numbers ,请你从数组中找出两个数满足相加之和等于目标数 target 。 函数应该以长度为 2 的整数数组的 ...
分类:其他好文   时间:2021-04-23 12:22:04    阅读次数:0
VUE3(二十五)自定义Modal对话框组件
接着自定义组件,这里是我自定义的一个modal对话框组件。 效果如下图所示: Modal.vue <template> <div class="modal-backdrop" v-if="modalShow"> <div class="modal" > <div class="modal-heade ...
分类:其他好文   时间:2021-04-21 12:33:42    阅读次数:0
codeforces 1513F. Swapping Problem
You are given 2 arrays a and b, both of size n. You can swap two elements in b at most once (or leave it as it is), and you are required to minimize t ...
分类:移动开发   时间:2021-04-20 15:01:50    阅读次数:0
C++基础之指针与引用的底层实现
一句话总结 指针分配内存,有地址(编译器和程序员看来),属于一个类型变量,支持取地址与解引用操作。 引用分配内存,有地址(编译器看来),相当于一个变量别名,不支持取地址与解引用操作(即不可获取其本身地址),声明即必须初始化,不可变更引用对象,本质上是“pointer const”。 推荐阅读 快速理 ...
分类:编程语言   时间:2021-04-16 11:45:07    阅读次数:0
Count IP Addresses(codewar)
题目: Implement a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the la ...
分类:其他好文   时间:2021-04-15 12:16:50    阅读次数:0
Full Binary Tree
题目来源 Full Binary Tree Description In computer science,a binary tree is a tree data structure in which each node has at most two children. Consider an ...
分类:其他好文   时间:2021-04-13 12:02:15    阅读次数:0
echarts属性的设置(完整大全)
转自于:https://www.cnblogs.com/benmumu/p/8316652.html // 全图默认背景 // backgroundColor: ‘rgba(0,0,0,0)’, // 默认色板 color: ['#ff7f50','#87cefa','#da70d6','#32cd ...
分类:其他好文   时间:2021-04-09 13:36:59    阅读次数:0
[CF468B] Two Sets - 2-sat
给定 $n$ 个数字,要划分成 $A,B$ 两个集合。要求对任意 $x$,若 $x$ 在 $A$ 中则 $a-x$ 也在 $A$ 中,若 $x$ 在 $B$ 中则 $b-x$ 也在 $B$ 中。保证数互不相同。 ...
分类:其他好文   时间:2021-04-06 14:31:06    阅读次数:0
02 add two numbers
02 add two numbers 1. 题目讲解 给定两个链表,每个链表表示一个整数,求这两个整数之和。结果也还是用链表表示。 2. 题解 思路: ? 本质上这道题是两个数带进位的加法。两个对应位置上的和是和对10取余。进位则是和整除10. class Solution { public: Li ...
分类:其他好文   时间:2021-04-06 14:12:17    阅读次数:0
Java并发:线程池的基本原理总结
一、为何选择线程池,不用时创建线程呢? 池化技术:提前准备一些资源,在需要时可以重复使用这些预先准备的资源。常见的池化技术的使用有:线程池、内存池、数据库连接池、HttpClient 连接池。 线程池作为池化技术的一种实践,本质上也是同样的思想,提前备好资源以备不时之需。因此,线程池相比较任务出现再 ...
分类:编程语言   时间:2021-03-29 12:47:30    阅读次数:0
13796条   上一页 1 2 3 4 5 6 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!