algo_prob

package
v0.0.0-...-e19c9e5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Brute2Dimension

func Brute2Dimension(points []Point) float64

func BruteLine

func BruteLine(points []int) int

BruteLine in a one dimension line places some discrete point,we want to find min dist point pair O(N*logN + N)

func FMin

func FMin(a, b float64) float64

func FindKthLargest

func FindKthLargest(nums []int, k int) int

func Min

func Min(a, b int) int

func Rec

func Rec(points []int, l, r int) int

Types

type Point

type Point struct {
	X, Y float64
}

Jump to

Keyboard shortcuts

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