Skip to content

Instantly share code, notes, and snippets.

/**
* Definition for singly-linked list.
* type ListNode struct {
* Val int
* Next *ListNode
* }
*/
func reverseList(cur *ListNode, k int) (*ListNode, *ListNode) {
if cur.Next == nil || k == 1 {
type trieNode struct {
childrens [26]*trieNode
isWordEnd bool
}
type trie struct {
root *trieNode
}
func initTrie() *trie {

Keybase proof

I hereby claim:

  • I am jlgm on github.
  • I am jlgm (https://keybase.io/jlgm) on keybase.
  • I have a public key whose fingerprint is 02B4 1DE3 36C3 6E1C A86D B58C 1FF3 0967 BFF1 135F

To claim this, I am signing this object: