next-growing-number: add couple more files

[?]
Dec 30, 2020, 12:24 PM
KEG3DUT7HAIIZ727B6FELVNRBCJO5RVZK3DXZBQWJMDMF3Q3NCCAC

Dependencies

Change contents

  • file addition: go.sum (-xw-x--x--)
    [2.283]
    github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
    github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
  • file addition: go.mod (-xw-x--x--)
    [2.283]
    module ngn
    go 1.15
    require github.com/matryer/is v1.4.0
  • file addition: cmd (dxwrx-rx-r)
    [2.283]
  • file addition: ngn (dxwrx-rx-r)
    [0.247]
  • file addition: main.go (-xw-x--x--)
    [0.254]
    package main
    import (
    "bufio"
    "fmt"
    "os"
    "ngn"
    )
    /**
    * Auto-generated code below aims at helping you parse
    * the standard input according to the problem statement.
    **/
    func main() {
    scanner := bufio.NewScanner(os.Stdin)
    scanner.Buffer(make([]byte, 1000000), 1000000)
    scanner.Scan()
    n := scanner.Text()
    fmt.Fprintf(os.Stderr, "input: %s, size: %d\n", n, len(n))
    tipping := ngn.Tipping(n)
    fmt.Println(ngn.Growing(n, tipping))
    }