leetcode

package module
v0.0.0-...-6414846 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

README

leetcode

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Json

func Json(v interface{}) string

Types

type LFUCache

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

func LFUConstructor

func LFUConstructor(capacity int) LFUCache

func (*LFUCache) Get

func (this *LFUCache) Get(key int) int

func (*LFUCache) Put

func (this *LFUCache) Put(key int, value int)

type LRUCache

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

func Constructor

func Constructor(capacity int) LRUCache

func (*LRUCache) Get

func (this *LRUCache) Get(key int) int

func (*LRUCache) Put

func (this *LRUCache) Put(key int, value int)

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

*

  • Definition for singly-linked list.
  • type ListNode struct {
  • Val int
  • Next *ListNode
  • }

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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