JAVA learning -- 4 Dynamic array implementation
Dynamic array implementation
1. Class structure
The construction of all classes needs to be considered from two aspects: properties and methods.
attribute To construct a dynamic array, we first need an array with uncertain size, and then determine the size of the array when calling its constructor. Secondly, some parameters about the array: ...
Added by davemwohio on Thu, 03 Mar 2022 14:07:07 +0200
[algorithm] sword finger Offer special assault version Day4 array part
[algorithm] sword finger Offer special assault version Day4 array part
Title address: https://leetcode-cn.com/study-plan/lcof/?progress=wgzvtig
Objective: summarize key points and share ideas Note: under reasonable conditions, only use the code that is the simplest to understand and practical to use
I [medium] 010 Subarray with and k ...
Added by 00king00 on Sat, 26 Feb 2022 12:04:35 +0200
Comprehensive analysis of C array
Comprehensive analysis of C array
Array name
The value of the array name is a pointer constant, that is, the address of the first element of the array Its type depends on the type of array element
There are only two situations where array names are not represented by pointer constants-------
① sizeof (array name), calculate the size of the ...
Added by Kardall on Thu, 24 Feb 2022 12:48:48 +0200
Learn Java--day06 -- array from scratch
I Advanced application of array
1. Array inversion
Meaning: exchange the elements in the array in order of index
Prerequisites for reversal: 1. Confirm the index position of the element to be exchanged int start = 0; int end = arr.length - 1 2. The law of index position movement after each exchange start++ end– 3. How to exchange eleme ...
Added by disconne on Tue, 22 Feb 2022 19:53:12 +0200
Data structure (C language version) -- string, array and generalized table notes
1. String
①. Definition of string
String -- a finite sequence composed of zero or more characters. It is a special linear table. Its data element is one character, that is, a linear table with limited content.
Substring:
A subsequence of any consecutive characters in a string
Main string:
String containing substring
Character pos ...
Added by guzman-el-bueno on Wed, 16 Feb 2022 07:01:56 +0200
Array: question brushing record
Overview of knowledge points:
1. Sum of two numbers:
Given an integer array , nums , and an integer target value , target, please find the , and the , integers with the target value , target , in the array and return their array subscripts.
You can assume that each input will correspond to only one answer. However, the same e ...
Added by cuvaibhav on Tue, 15 Feb 2022 15:34:49 +0200
It's enough for beginners to learn Java arrays
1, Overview of arrays
1. Understanding of arrays:
An array is a collection of several data of the same type arranged in a certain order, named with a name, and managed uniformly by numbering.
2. Array related concepts:
Array name element subscript, subscript and index length of array: number of elements
3. Characteristics of array:
Arrays ...
Added by BEFOR on Wed, 09 Feb 2022 02:21:18 +0200
JUC - ArrayList and LinkedList summary
1, Overview
1. Inheritance structure of collection
As can be seen from the above figure, there are two interfaces list and set under the Collection. List represents the linear table in the data structure, and the implementation method of linear table is divided into linked list and array. Set means set. Each element in a set is indep ...
Added by obewan on Tue, 08 Feb 2022 11:29:18 +0200
Common operations of JavaScript array
preface
Array is one of the common data types in JavaScript. I'll make a brief record and summary about its operation methods here.
This paper mainly includes:
Create arrayDetermine whether it is an arrayClass array and array conversionArray de duplication
You can choose to eat according to your own needs.
Create array
Creating an array ...
Added by Garth Farley on Sat, 05 Feb 2022 20:28:32 +0200
Common operations of JavaScript array
preface
Array is one of the common data types in JavaScript. I'll make a brief record and summary about its operation methods here.
This paper mainly includes:
Create array
Determine whether it is an array
Class array and array conversion
Array de duplication
You can choose to eat according to your own needs.
Create array
Creating an array i ...
Added by TomatoLover on Sat, 05 Feb 2022 19:56:35 +0200