leetcode

package
v0.0.0-...-934e19b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	InputRaw    string
	Inputs      []string
	Output      string
	Explanation string
}

type Problem

type Problem struct {
	Fn       ProblemFunc
	Examples []Example
}

func GetProblem

func GetProblem(titleSlug string) (*Problem, error)

func (*Problem) WriteStub

func (p *Problem) WriteStub(w io.Writer, packageName string) (err error)

WriteStub writes a problem stub to the provided writer.

type ProblemFunc

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

func (ProblemFunc) Signature

func (f ProblemFunc) Signature() string

Jump to

Keyboard shortcuts

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