hash_table

package
v0.0.0-...-eb09a2a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetZeroes

func SetZeroes(matrix [][]int)
Example
package main

import (
	"fmt"
)

type question73 struct {
	para73
	ans73
}

// para 是参数
// one 代表第一个参数
type para73 struct {
	matrix [][]int
}

// ans 是答案
// one 代表第一个答案
type ans73 struct {
}

func main() {

	qs := []question73{

		{
			para73{[][]int{
				{0, 1, 2, 0},
				{3, 4, 5, 2},
				{1, 3, 1, 5},
			}},
			ans73{},
		},
	}

	for _, q := range qs {
		_, p := q.ans73, q.para73
		SetZeroes(p.matrix)
		fmt.Println(p)
	}
}
Output:

{[[0 0 0 0] [0 4 5 0] [0 3 1 0]]}

Types

This section is empty.

Jump to

Keyboard shortcuts

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