arrayHashing

package
v0.0.0-...-eae1879 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidSudoku

func IsValidSudoku(board [][]byte) bool

Time Complexity O(n^2) Space Complexity O(n)

func LongestConsecutive

func LongestConsecutive(nums []int) int

Time Complexity O(n) Space Complexity O(n)

Types

type Codec

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

func (*Codec) Decode

func (codec *Codec) Decode(strs string) []string

Decodes a single string to a list of strings.

func (*Codec) Encode

func (codec *Codec) Encode(strs []string) string

Time Complexity O(m) Where m is the sum of lengths of all the strings and n is the number of strings. Space Complexity O(1) Encodes a list of strings to a single string.

Jump to

Keyboard shortcuts

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