leetcode

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LockStr = " 🔒"
)

Functions

func AccountsLogin

func AccountsLogin(username, password string) (*http.Response, error)

func AutoLogin

func AutoLogin() (*http.Response, error)

func Clean

func Clean()

func GetDescription

func GetDescription(articleSlug string) string

func GetQuestionTranslation

func GetQuestionTranslation() (qt questionTranslationType)

func GetTopicTag

func GetTopicTag(slug string) (tt topicTagType)

func ProblemsAlgorithms

func ProblemsAlgorithms() (ps problemsType)

func ProblemsAll

func ProblemsAll() (ps problemsType)

func ProblemsDatabase

func ProblemsDatabase() (ps problemsType)

func ProblemsShell

func ProblemsShell() (ps problemsType)

func QuestionData

func QuestionData(titleSlug string, isForce bool, graphQL ...string) (qd questionDataType)

Types

type StatStatusPairsType added in v1.4.0

type StatStatusPairsType struct {
	Stat       statType       `json:"stat"`
	Status     string         `json:"status"`
	Difficulty difficultyType `json:"difficulty"`
	PaidOnly   paidType       `json:"paid_only"`
	IsFavor    bool           `json:"is_favor"`
	Frequency  int            `json:"frequency"`
	Progress   int            `json:"progress"`
}

func (*StatStatusPairsType) WriteRow added in v1.4.0

func (problem *StatStatusPairsType) WriteRow(buf *bytes.Buffer)

type TagType added in v1.4.0

type TagType struct {
	Name           string
	Slug           string
	TranslatedName string
}

func GetTags

func GetTags() (tags []TagType)

func (*TagType) SaveContents added in v1.4.0

func (tag *TagType) SaveContents()

func (*TagType) ShowName added in v1.4.0

func (tag *TagType) ShowName() string

Jump to

Keyboard shortcuts

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