README ¶ leetcode 刷题小工具, 生成 README, 答题文件, 测试文件等 Tag Question # 标题 难度 1 Two Sum 简单 2 Add Two Numbers 中等 3 Longest Substring Without Repeating Characters 中等 4 Median of Two Sorted Arrays 困难 5 Longest Palindromic Substring 中等 6 ZigZag Conversion 中等 7 Reverse Integer 简单 8 String to Integer (atoi) 中等 9 Palindrome Number 简单 10 Regular Expression Matching 困难 11 Container With Most Water 中等 12 Integer to Roman 中等 13 Roman to Integer 简单 14 Longest Common Prefix 简单 15 3Sum 中等 16 3Sum Closest 中等 17 Letter Combinations of a Phone Number 中等 18 4Sum 中等 19 Remove Nth Node From End of List 中等 20 Valid Parentheses 简单 21 Merge Two Sorted Lists 简单 22 Generate Parentheses 中等 23 Merge k Sorted Lists 困难 24 Swap Nodes in Pairs 中等 25 Reverse Nodes in k-Group 困难 26 Remove Duplicates from Sorted Array 简单 27 Remove Element 简单 28 Implement strStr() 简单 29 Divide Two Integers 中等 30 Substring with Concatenation of All Words 困难 31 Next Permutation 中等 32 Longest Valid Parentheses 困难 33 Search in Rotated Sorted Array 中等 34 Find First and Last Position of Element in Sorted Array 中等 35 Search Insert Position 简单 36 Valid Sudoku 中等 37 Sudoku Solver 困难 38 Count and Say 简单 39 Combination Sum 中等 40 Combination Sum II 中等 41 First Missing Positive 困难 42 Trapping Rain Water 困难 43 Multiply Strings 中等 44 Wildcard Matching 困难 53 Maximum Subarray 简单 57 Insert Interval 困难 58 Length of Last Word 简单 66 Plus One 简单 67 Add Binary 简单 69 Sqrt(x) 简单 70 Climbing Stairs 简单 83 Remove Duplicates from Sorted List 简单 88 Merge Sorted Array 简单 100 Same Tree 简单 101 Symmetric Tree 简单 104 Maximum Depth of Binary Tree 简单 107 Binary Tree Level Order Traversal II 简单 108 Convert Sorted Array to Binary Search Tree 简单 110 Balanced Binary Tree 简单 111 Minimum Depth of Binary Tree 简单 112 Path Sum 简单 118 Pascal's Triangle 简单 119 Pascal's Triangle II 简单 121 Best Time to Buy and Sell Stock 简单 122 Best Time to Buy and Sell Stock II 简单 125 Valid Palindrome 简单 136 Single Number 简单 141 Linked List Cycle 简单 146 LRU Cache 中等 155 Min Stack 简单 175 Combine Two Tables 简单 176 Second Highest Salary 简单 177 Nth Highest Salary 中等 178 Rank Scores 中等 180 Consecutive Numbers 中等 181 Employees Earning More Than Their Managers 简单 182 Duplicate Emails 简单 183 Customers Who Never Order 简单 184 Department Highest Salary 中等 185 Department Top Three Salaries 困难 192 Word Frequency 中等 193 Valid Phone Numbers 简单 194 Transpose File 中等 195 Tenth Line 简单 196 Delete Duplicate Emails 简单 197 Rising Temperature 简单 198 House Robber 简单 225 Implement Stack using Queues 简单 262 Trips and Users 困难 278 First Bad Version 简单 292 Nim Game 简单 303 Range Sum Query - Immutable 简单 374 Guess Number Higher or Lower 简单 383 Ransom Note 简单 387 First Unique Character in a String 简单 415 Add Strings 简单 421 Maximum XOR of Two Numbers in an Array 中等 448 Find All Numbers Disappeared in an Array 简单 477 Total Hamming Distance 中等 503 Next Greater Element II 中等 595 Big Countries 简单 596 Classes More Than 5 Students 简单 600 Non-negative Integers without Consecutive Ones 困难 601 Human Traffic of Stadium 困难 620 Not Boring Movies 简单 626 Exchange Seats 中等 627 Swap Salary 简单 739 Daily Temperatures 中等 746 Min Cost Climbing Stairs 简单 622 Design Circular Queue 中等 848 Shifting Letters 中等 927 Three Equal Parts 困难 976 Largest Perimeter Triangle 简单 978 Longest Turbulent Subarray 中等 981 Time Based Key-Value Store 中等 982 Triples with Bitwise AND Equal To Zero 困难 983 Minimum Cost For Tickets 中等 1002 Find Common Characters 简单 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 简单 1179 Reformat Department Table 简单 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 中等 面试题 16.11 Diving Board LCCI 简单 面试题 17.16 The Masseuse LCCI 简单 Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis src 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 0053-maximum-subarray 0057-insert-interval 0058-length-of-last-word 0066-plus-one 0067-add-binary 0069-sqrtx 0070-climbing-stairs 0083-remove-duplicates-from-sorted-list 0088-merge-sorted-array 0100-same-tree 0101-symmetric-tree 0104-maximum-depth-of-binary-tree 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 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 0146-lru-cache 0155-min-stack 0198-house-robber 0292-nim-game 0303-range-sum-query-immutable 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 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.