_02_ordered_array

package
v0.0.0-...-6d07767 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array struct {
	// contains filtered or unexported fields
}

func NewArray

func NewArray(capacity int) *Array

初始化数组,分配内存

@param capacity
@return *Array

func (*Array) Capacity

func (this *Array) Capacity() int

数组容量,固定大小

@receiver this
@return int

func (*Array) Insert

func (this *Array) Insert(element int)

func (*Array) String

func (this *Array) String() string

重写数组打印时的展示形式

@receiver this
@return string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL