Home
Zone's blog
Cancel

Java集合框架 之 Queue接口

特点:元素有序,可重复。包含以下几个常用的实现类: PriorityQueue 构造方法 常用方法 遍历方式 比较器(Comparator) ArrayDeque 构造方法 常用方法 遍历方式 参考 这里后两者都实现了Queue接口的子接口...

Java集合框架 之 List接口

特点:元素有序,可重复。包含以下几个常用的实现类: ArrayList 构造方法 常用方法 LinkedList 构造方法 常用方法 Vector 构造方法 常用方法 Stack 参考 ArrayList 基于数...

Java集合框架(java.util包)概述

在后续文中所有的示例代码都以引入了java.util包为前提,即: import java.util.*; 整体框架 Java的集合框架分为两个体系: 基于Collection接口。Collection接口继承自Iterable接口,这说明其子类均可以实现遍历操作。 基于Map接口。子类均可以实现键值对操作,键不可重复。 Collection...

Java基础-学习笔记

数据类型 框架示意图如下: graph TD data[数据类型] --- primitive[基本数据类型]; data --- reference[引用数据类型]; %% primitive primitive --- N[数值型]; primitive --- C[字符型]; primitive --- B[布尔型]; %% ...

Leetcode 2742 漆房子

题目概述 Leetcode 2742 You are given two 0-indexed integer arrays, cost and time, of size n representing the costs and the time taken to paint n different walls respectively. There are two painters a...

Leetcode 1926 距离迷宫入口最近的出口

题目概述 Leetcode 1926 You are given an m x n matrix maze (0-indexed) with empty cells (represented as '.') and walls (represented as '+'). You are also given the entrance of the maze, where entrance...

Leetcode 72 编辑距离

题目概述 Leetcode 72 Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three operations permitted on a word: In...

Leetcode 343 整数拆分

题目概述 Leetcode 343 Given an integer n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers. Return the maximum product you can get. Const...

Leetcode 790 铺瓷砖

题目概述 Leetcode 790 You have two types of tiles: a 2 x 1 domino shape and a tromino shape. You may rotate these shapes. Given an integer n, return the number of ways to tile an 2 x n board. Si...

Preview Image

记2023年度ISI研究室合宿

合宿旅行路线 URL:合宿路线 日程安排 一日目 予定 当日 内容 関連リンク 9:00 9:00 東京駅丸の内ビルディング前 集合   9:10 10:00 出発   ...

PageView: