码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
[LeetCode] 670. Maximum Swap
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:其他好文   时间:2021-03-18 14:32:17    阅读次数:0
PAT 2020年秋季 7-2 How Many Ways to Buy a Piece of Land (25 分)
The land is for sale in CyberCity, and is divided into several pieces. Here it is assumed that each piece of land has exactly two neighboring pieces, ...
分类:其他好文   时间:2021-03-11 19:32:24    阅读次数:0
【数据结构】算法 Reverse Linked List II 反转链表的一部分
Reverse Linked List II 反转链表 Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list ...
分类:编程语言   时间:2021-03-10 13:27:14    阅读次数:0
常量指针和指针常量 C / C++
按英文的字面意思就比较好理解了: 常量指针:pointer to const 字面意思:指向常量的指针 指针常量:const pointer 字面意思:指针本身是个常量 看一段代码: char hello[6] = "hello"; char world[6] = "world"; const ch ...
分类:编程语言   时间:2021-03-10 12:55:03    阅读次数:0
[LeetCode] 1046. Last Stone Weight 最后的石头重量
We have a collection of stones, each stone?has a positive integer weight. Each turn, we choose the two?heaviest?stones?and smash them together. Suppos ...
分类:其他好文   时间:2021-03-02 12:02:57    阅读次数:0
[CodeForces1492C] Maximum Width
description: There are two strings \(a\), \(b\) with the length \(n\), and \(m\). Find the Array <\(p_1, p_2, ..., p_m>\), such that \(a_{p_i}= b_i\), ...
分类:其他好文   时间:2021-03-01 13:26:32    阅读次数:0
LeetCode - Make The String Great
Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where ...
分类:其他好文   时间:2021-02-22 12:38:24    阅读次数:0
[LeetCode] 1031. Maximum Sum of Two Non-Overlapping Subarrays 两个不重叠的子数组的最大和
Given an array of non negative integers, return the maximum sum of elements in two non overlapping (contiguous) subarrays, which have lengths and . (F ...
分类:移动开发   时间:2021-02-18 12:53:23    阅读次数:0
[LeetCode] 1029. Two City Scheduling 两个城市调度
A company is planning to interview people. Given the array where ,?the cost of flying the person to city is , and the cost of flying the person to cit ...
分类:其他好文   时间:2021-02-17 14:20:21    阅读次数:0
Smart Pointers
A pointer is a general concept for a variable contains an address in memory. Smart pointers are data structures that not only act like a pointer but a ...
分类:其他好文   时间:2021-02-16 12:42:23    阅读次数:0
13796条   上一页 1 ... 3 4 5 6 7 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!