包含标签:数据结构 的文章
-
-
-
找到所有数组中消失的数(C语言详解)
题目:找到所有数组中消失的数 题目详情: 给你一个含 n 个整数的数组 nums ,其中 nums[i] 在区间 [1,n] 内。请你找出所以在 [1,n] 范围内但没有出现在 nums…… -
华为OD机考算法题:字符串化繁为简
目录 题目部分 解读与分析 代码实现 题目部分 题目 字符串化繁为简 题目说明 给定一个输入字符串,字符串只可能由英文字母 ('a'~'z'、'A'~'Z' )和左右…… -
https://leetcode.cn/problems/next-greater-element-i/ " alt="单调栈(C/C++)">
单调栈(C/C++)
目录 1. 单调栈的定义 2. 单调栈的常见用途 3. 案例分析 3.1 暴力解法 3.2 单调栈 4. 单调栈总结 1. 单调栈的定义 单调栈顾名思义,就是栈内的元素是单调…… -
-
【算法题】2651. 计算列车到站时间
题目: 给你一个正整数 arrivalTime 表示列车正点到站的时间(单位:小时),另给你一个正整数 delayedTime 表示列车延误的小时数。 返回列车实际到站的时间…… -
Leetcode 410. Split Array Largest Sum (Binary Search经典)
Split Array Largest Sum Hard 8.9K 184 Companies Given an integer array nums and an integer k, split nums into k non-empty subarrays such that the …… -
Leetcode 724: Find Pivot Index (前缀和数组简单题)
Find Pivot Index Easy Given an array of integers nums, calculate the pivot index of this array. The pivot index is the index where the sum of all…… -
从零开始学习 Java:简单易懂的入门指南之Collection集合及list集合(二十一)
Collection集合及list集合 1.Collection集合 1.1数组和集合的区别 1.2集合类体系结构 1.3Collection 集合概述和使用 1.4Collection集合的遍历 1.4.1 ……