package
0.0.0-20241020204346-852d83918761
Repository: https://github.com/plutov/practice-go.git
Documentation: pkg.go.dev

# README

Missing Numbers

Given an array containing all the numbers from 1 to n except two, find the two missing numbers.

Example

  • missing([]int{4, 2, 3}) = []int{1, 5}
  • missing([]int{1, 2, 3, 4}) = []int{5, 6}

Run tests with benchmarks

go test -bench .

# Functions

Missing func.