Documentation
¶
Overview ¶
Example ¶
package main
import (
"fmt"
"github.com/skhal/lab/iq/9/stripzero"
)
func main() {
matrix := [][]int{
[]int{1, 1, 1, 1},
[]int{1, 0, 1, 1},
[]int{1, 1, 1, 1},
[]int{1, 1, 1, 0},
}
stripzero.Clean(matrix)
for _, nn := range matrix {
fmt.Println(nn)
}
}
Output: [1 0 1 0] [0 0 0 0] [1 0 1 0] [0 0 0 0]
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOptimal ¶
func CleanOptimal(m [][]int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.