segmentTree

package
v0.0.0-...-9cdbae4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	N = 1000000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MyCalendarThree

type MyCalendarThree struct {
	*SegmentNode
}

func Constructor

func Constructor() MyCalendarThree

func (*MyCalendarThree) Book

func (node *MyCalendarThree) Book(start int, end int) int

type MyCalendarThree1

type MyCalendarThree1 map[int]pair

https://leetcode.cn/problems/my-calendar-iii/

func Constructor1

func Constructor1() MyCalendarThree1

func (*MyCalendarThree1) Book1

func (t *MyCalendarThree1) Book1(start int, end int) int

type SegmentNode

type SegmentNode struct {
	Ls, Rs *SegmentNode
	// add 代表懒标记
	Add int
	// 代表要统计的值
	Val int
}

Jump to

Keyboard shortcuts

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