码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
delphi7学习:数据类型
Object Pascal 语言提供了非常丰富的数据类型,即简单类型( Simple)、字符串类型( String)、结构类型( Struct)、指针类型( Pointer)、函数和过程类型( Procedural)和变体类型( Variant)等.( 1)简单类型( Simple)简单类型包括实数... ...
分类:Windows程序   时间:2020-02-20 09:48:17    阅读次数:81
LeetCode——012 Integer to Roman
Description Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, jus ...
分类:其他好文   时间:2020-02-20 09:28:12    阅读次数:79
[LeetCode] 934. Shortest Bridge 最短的桥梁
In a given 2D binary array , there are two islands. (An island is a 4 directionally connected group of s not connected to any other 1s.) Now, we may c ...
分类:其他好文   时间:2020-02-19 23:40:26    阅读次数:85
[LeetCode] 138. Copy List with Random Pointer
1. 原题链接:https://leetcode.com/problems/copy list with random pointer/ 2. 解题思路 2.1 映射表 1. 建立新旧节点之间的映射表:old new,来解决复制random指针 2.2 克隆链表 1. 创建一个包含新节点的克隆链表: ...
分类:其他好文   时间:2020-02-19 13:12:15    阅读次数:55
C 基础 _Generic 泛型应用
引言 - _Generic 用法简介 #include <stdio.h> #define TYPENAME_CASE(type) \ type: #type, #define TYPENAME_POINTER_CASE(type) \ TYPENAME_CASE(type) \ TYPENAME_ ...
分类:其他好文   时间:2020-02-19 12:56:27    阅读次数:103
Power Strings POJ - 2406 后缀数组
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concate ...
分类:编程语言   时间:2020-02-18 16:33:41    阅读次数:88
1030 完美数列
two pointers通向扫描法。 #include<iostream> #include<algorithm> using namespace std; typedef long long LL; LL a[100010] = {0}; int main() { int n,p,max = -1 ...
分类:其他好文   时间:2020-02-18 13:04:59    阅读次数:49
Cut Ribbon
Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each ribbon ...
分类:其他好文   时间:2020-02-18 13:04:42    阅读次数:81
layui.js
用法: 1.在base.js里导入layui插件 2.在使用的html页面里引入 base.js lucky.js ...
分类:Web程序   时间:2020-02-18 11:27:54    阅读次数:114
欧拉计划第10题题解
Summation of primes The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 素数的和 所有小于10的素数的和是2 + 3 + 5 ...
分类:其他好文   时间:2020-02-17 20:02:02    阅读次数:77
13796条   上一页 1 ... 58 59 60 61 62 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!