Skip to content

Instantly share code, notes, and snippets.

func findLadders(beginWord string, endWord string, wordList []string) [][]string {
path := make(map[string][][]string)
queue := []string{beginWord}
path[beginWord] = [][]string{{beginWord}}
for len(queue) != 0 {
u := queue[0]
queue = queue[1:]
@d8660091
d8660091 / desktop.md
Last active November 16, 2020 23:26
Minimalism xmonad and xmobar config

2020-11-16-182323_3440x1440_scrot-thumb

@d8660091
d8660091 / gist:dc96d502246357cb090c36e9520010f2
Last active February 9, 2023 02:37
Emacs lsp-mode for Tramp golang files
(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection (list "gopls" "-remote=auto"))
:major-modes '(go-mode)
:remote? t
:library-folders-fn #'lsp-go--library-default-directories
:server-id 'gopls-remote))
(setq lsp-enable-file-watchers nil)