leetcode

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: 0BSD Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumMatrix

type NumMatrix struct {
	// contains filtered or unexported fields
}

https://leetcode.com/problems/range-sum-query-2d-immutable/

func Constructor

func Constructor(matrix [][]int) NumMatrix

func (*NumMatrix) SumRegion

func (t *NumMatrix) SumRegion(row1 int, col1 int, row2 int, col2 int) int

Jump to

Keyboard shortcuts

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