Documentation ¶ Index ¶ type ListNode type TreeNode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ListNode ¶ type ListNode struct { Val int Next *ListNode } type TreeNode ¶ type TreeNode struct { Val int Left *TreeNode Right *TreeNode } Source Files ¶ View all Source files util.go Directories ¶ Show internal Expand all Path Synopsis 0001-two-sum 0002-add-two-numbers 0003-longest-substring-without-repeating-characters 0004-median-of-two-sorted-arrays 0005-longest-palindromic-substring 0006-zigzag-conversion 0007-reverse-integer 0008-string-to-integer-atoi 0009-palindrome-number 0010-regular-expression-matching 0011-container-with-most-water 0012-integer-to-roman 0013-roman-to-integer 0014-longest-common-prefix 0015-3sum 0016-3sum-closest 0017-letter-combinations-of-a-phone-number 0018-4sum 0019-remove-nth-node-from-end-of-list 0020-valid-parentheses 0021-merge-two-sorted-lists 0022-generate-parentheses 0023-merge-k-sorted-lists 0024-swap-nodes-in-pairs 0025-reverse-nodes-in-k-group 0026-remove-duplicates-from-sorted-array 0027-remove-element 0028-implement-strstr 0029-divide-two-integers 0030-substring-with-concatenation-of-all-words 0031-next-permutation 0032-longest-valid-parentheses 0033-search-in-rotated-sorted-array 0034-find-first-and-last-position-of-element-in-sorted-array 0035-search-insert-position 0036-valid-sudoku 0037-sudoku-solver 0038-count-and-say 0039-combination-sum 0040-combination-sum-ii 0041-first-missing-positive 0042-trapping-rain-water 0043-multiply-strings 0044-wildcard-matching 0046-permutations 0048-rotate-image 0049-group-anagrams 0053-maximum-subarray 0055-jump-game 0056-merge-intervals 0057-insert-interval 0058-length-of-last-word 0062-unique-paths 0064-minimum-path-sum 0066-plus-one 0067-add-binary 0069-sqrtx 0070-climbing-stairs 0075-sort-colors 0078-subsets 0079-word-search 0083-remove-duplicates-from-sorted-list 0088-merge-sorted-array 0094-binary-tree-inorder-traversal 0096-unique-binary-search-trees 0098-validate-binary-search-tree 0100-same-tree 0101-symmetric-tree 0102-binary-tree-level-order-traversal 0104-maximum-depth-of-binary-tree 0105-construct-binary-tree-from-preorder-and-inorder-traversal 0107-binary-tree-level-order-traversal-ii 0108-convert-sorted-array-to-binary-search-tree 0110-balanced-binary-tree 0111-minimum-depth-of-binary-tree 0112-path-sum 0118-pascals-triangle 0119-pascals-triangle-ii 0121-best-time-to-buy-and-sell-stock 0122-best-time-to-buy-and-sell-stock-ii 0125-valid-palindrome 0136-single-number 0141-linked-list-cycle 0142-linked-list-cycle-ii 0146-lru-cache 0155-min-stack 0160-intersection-of-two-linked-lists 0169-majority-element 0198-house-robber 0200-number-of-islands 0206-reverse-linked-list 0215-kth-largest-element-in-an-array 0226-invert-binary-tree 0231-power-of-two 0234-palindrome-linked-list 0236-lowest-common-ancestor-of-a-binary-tree 0278-first-bad-version 0283-move-zeroes 0292-nim-game 0300-longest-increasing-subsequence 0303-range-sum-query-immutable 0322-coin-change 0347-top-k-frequent-elements 0374-guess-number-higher-or-lower 0383-ransom-note 0387-first-unique-character-in-a-string 0394-decode-string 0415-add-strings 0421-maximum-xor-of-two-numbers-in-an-array 0448-find-all-numbers-disappeared-in-an-array 0477-total-hamming-distance 0503-next-greater-element-ii 0543-diameter-of-binary-tree 0600-non-negative-integers-without-consecutive-ones 0622-design-circular-queue 0739-daily-temperatures 0746-min-cost-climbing-stairs 0848-shifting-letters 0927-three-equal-parts 0976-largest-perimeter-triangle 0978-longest-turbulent-subarray 0981-time-based-key-value-store 0982-triples-with-bitwise-and-equal-to-zero 0983-minimum-cost-for-tickets 1000023-the-masseuse-lcci 1002-find-common-characters 100352-diving-board-lcci 1009-complement-of-base-10-integer 1011-capacity-to-ship-packages-within-d-days 1013-partition-array-into-three-parts-with-equal-sum 1014-best-sightseeing-pair 1017-convert-to-base-2 1018-binary-prefix-divisible-by-5 1019-next-greater-node-in-linked-list 1020-number-of-enclaves 1021-remove-outermost-parentheses 1022-sum-of-root-to-leaf-binary-numbers 1287-element-appearing-more-than-25-in-sorted-array 1290-convert-binary-number-in-a-linked-list-to-integer 1502-can-make-arithmetic-progression-from-sequence 1503-last-moment-before-all-ants-fall-out-of-a-plank 1504-count-submatrices-with-all-ones special-dp-01-package Click to show internal directories. Click to hide internal directories.