geomseq

package
v0.0.0-...-00a9970 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Example
package main

import (
	"fmt"

	"github.com/skhal/lab/iq/11/geomseq"
)

func main() {
	triplets := geomseq.Find([]int{3, 1, 2, 3, 9, 3, 27}, 3)
	for _, triplet := range triplets {
		fmt.Println(triplet)
	}
}
Output:

{1 3 4}
{0 4 6}
{3 4 6}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index int

type Ratio

type Ratio int

type Triplet

type Triplet struct {
	I, J, K Index
}

func Find

func Find(nn []int, r Ratio) []Triplet

func (Triplet) String

func (t Triplet) String() string

Jump to

Keyboard shortcuts

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