insert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index int

func FindInsertIndex

func FindInsertIndex(nn []int, n int) Index
Example
package main

import (
	"fmt"

	"github.com/skhal/lab/iq/24/insert"
)

func main() {
	nn := []int{1, 2, 3}
	fmt.Println(insert.FindInsertIndex(nn, 2))
}
Output:
1

Jump to

Keyboard shortcuts

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