LeetCode, 基于LeetCode在线判断

分享于 

28分钟阅读

GitHub

  繁體 雙語
Solutions of LeetCode Online Judge
  • 源代码名称:LeetCode
  • 源代码网址:http://www.github.com/MaskRay/LeetCode
  • LeetCode源代码文档
  • LeetCode源代码下载
  • Git URL:
    git://www.github.com/MaskRay/LeetCode.git
    Git Clone代码到本地:
    git clone http://www.github.com/MaskRay/LeetCode
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/MaskRay/LeetCode
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    
    LeetCode

    LeetCode解决方案提供了一些关于所选问题的思考。

    解决 482/559 问题。

    数据库

    请参见 database.md

    算法

    # 标题解决方案
    635设计日志存储系统。design-log-storage-system.cc
    634发现 array的问题。find-the-derangement-of-an-array.cc
    633平方数的sum-of-square-numbers.cc
    631设计Excel和公式design-excel-sum-formula.cc
    630课程时间表3。course-schedule-iii.cc
    629K 反向对 arrayk-inverse-pairs-array.cc
    628的最大乘积为三个数字。maximum-product-of-three-numbers.cc
    617合并两个二叉树。merge-two-binary-trees.cc
    616在字符串中添加粗体标记add-bold-tag-in-string.cc
    611有效的三角形号valid-triangle-number.cc
    604设计压缩字符串迭代器design-compressed-string-iterator.cc
    600×600dpi,热压转印纸,正常品质无连续整数的非负整数non-negative-integers-without-consecutive-ones.cc
    599两个列表的最小索引和。minimum-index-sum-of-two-lists.cc
    598范围加法 IIrange-addition-ii.cc
    594长协调子序列longest-harmonious-subsequence.cc
    593有效的平方valid-square.cc
    592分数加法和减法。fraction-addition-and-subtraction.cc
    588内存文件系统中的设计design-in-memory-file-system.cc
    587篱笆。erect-the-fence.cc
    583删除两个字符串的操作。delete-operation-for-two-strings.cc
    582终止进程失败kill-process.cc
    581短排序的连续子阵列shortest-unsorted-continuous-subarray.cc
    575分发糖果。distribute-candies.cc
    565array 嵌套array-nesting.cc
    556下一个伟大的元素 III。next-greater-element-iii.cc
    553最优除法。optimal-division.cc
    552学生考勤记录2.student-attendance-record-ii.cc
    533寂寞像素 IIlonely-pixel-ii.cc
    531寂寞像素我。lonely-pixel-i.cc
    514自由跟踪功能freedom-trail.cc
    508最频繁的子树总和most-frequent-subtree-sum.cc
    507完美编号perfect-number.cc
    504基 7base-7.cc
    502IPO计划ipo.cc
    501在二叉搜索树中查找模式( )。find-mode-in-binary-search-tree.cc
    500键盘行标题keyboard-row.cc
    495Teemo攻击teemo-attacking.cc
    494目标求和target-sum.cc
    491增加子序列数increasing-subsequences.cc
    490迷宫the-maze.cc
    485最大连续max-consecutive-ones.cc
    483最小的基smallest-good-base.cc
    482许可证密钥格式license-key-formatting.cc
    481魔术字符串magical-string.cc
    480滑动窗口中 Mediansliding-window-median.cc
    477距离total-hamming-distance.cc
    476号补码number-complement.cc
    475加热器heaters.cc
    474和零。ones-and-zeroes.cc
    473Matchsticks到平方matchsticks-to-square.cc
    472连接的单词concatenated-words.cc
    469凸多边形convex-polygon.cc
    468验证IP地址validate-ip-address.cc
    467字符串中的唯一子字符串。unique-substrings-in-wraparound-string.cc
    466计数重复次数。count-the-repetitions.cc
    465最佳账户余额。optimal-account-balancing.cc
    464我可以can-i-win.cc
    463岛周边区域island-perimeter.cc
    462最小移动到等于 array 元素2.minimum-moves-to-equal-array-elements-ii.cc
    461火腿距离hamming-distance.cc
    459重复子字符串 Patternrepeated-substring-pattern.cc
    456132 Pattern132 -pattern.cc
    455分配 Cookiesassign-cookies.cc
    4544Sum4 sum-ii.cc
    453最小移动到等于 array 元素。minimum-moves-to-equal-array-elements.cc
    452最小的arrow balloonminimum-number-of-arrows-to-burst-balloons.cc
    447的Boomerangs数number-of-boomerangs.cc
    446算术切片II子序列arithmetic-slices-ii-subsequence.cc
    444序列重建技术sequence-reconstruction.cc
    441排列硬币。arranging-coins.cc
    440在字典顺序中最小的 k-th-smallest-in-lexicographical-order.cc
    439三元表达式分析器ternary-expression-parser.cc
    438查找字符串中的所有变位词。find-all-anagrams-in-a-string.cc
    437路径和 IIIpath-sum-iii.cc
    436查找正确的间隔值find-right-interval.cc
    435非重叠间隔non-overlapping-intervals.cc
    434字符串中的段的数。number-of-segments-in-a-string.cc
    432所有O`one数据结构all-oone-data-structure.cc
    424长重复字符替换。longest-repeating-character-replacement.cc
    423从英语中重建原始数字。reconstruct-original-digits-from-english.cc
    422有效单词平方valid-word-square.cc
    421两个数字中两个数的最大异或maximum-xor-of-two-numbers-in-an-array.cc
    420强密码检查器strong-password-checker.cc
    419战舰在电路板上。battleships-in-a-board.cc
    417美国太平洋太平洋水流量有限公司pacific-atlantic-water-flow.cc
    416分区等于子集和。partition-equal-subset-sum.cc
    415添加字符串add-strings.cc
    414第三个最大数字third-maximum-number.cc
    413算术切片arithmetic-slices.cc
    412嗡嗡声。fizz-buzz.cc
    410拆分 array 大求和split-array-largest-sum.cc
    409长回文数longest-palindrome.cc
    408有效的单词缩写。valid-word-abbreviation.cc
    407陷阱雨水二。trapping-rain-water-ii.cc
    406基于高度的队列重构queue-reconstruction-by-height.cc
    405将数字转换为十六进制字符。convert-a-number-to-hexadecimal.cc
    404左离开的和。sum-of-left-leaves.cc
    403蛙跳跃。frog-jump.cc
    402删除K 位数字remove-k-digits.cc
    401二进制监视插件binary-watch.cc
    400n 位数字nth-digit.cc
    399评估除法运算evaluate-division.cc
    398随机选取索引random-pick-index.cc
    397整数替换插件integer-replacement.cc
    396旋转函数rotate-function.cc
    395带至少K 重复字符的长子字符串。longest-substring-with-at-least-k-repeating-characters.cc
    394解码字符串decode-string.cc
    393UTF-8 验证插件utf-8-validation.cc
    392的子序列is-subsequence.cc
    391完美 rectangleperfect-rectangle.cc
    390消除游戏elimination-game.cc
    389找到差异。find-the-difference.cc
    388最长绝对文件路径longest-absolute-file-path.cc
    387字符串中第一个唯一字符。first-unique-character-in-a-string.cc
    386字典数字lexicographical-numbers.cc
    385小型分析程序mini-parser.cc
    384Shuffle arrayshuffle-an-array.cc
    383勒索笔记( )ransom-note.cc
    382链接列表随机 nodelinked-list-random-node.cc
    381插入删除 GetRandom O(1) 重复允许使用insert-delete-getrandom-o1-duplicates-allowed.cc
    380插入删除 GetRandom O(1)insert-delete-getrandom-o1.cc
    379设计电话目录design-phone-directory.cc
    378在排序矩阵中,的极小元素。kth-smallest-element-in-a-sorted-matrix.cc
    377组合和 IVcombination-sum-iv.cc
    376摆动子序列wiggle-subsequence.cc
    375猜测Higher或者 Lowerguess-number-higher-or-lower-ii.cc
    374猜测数字高或者低。guess-number-higher-or-lower.cc
    373查找带有小和的K 对。find-k-pairs-with-smallest-sums.cc
    372超级电源super-pow.cc
    371两个整数的sum-of-two-integers.cc
    370范围加法range-addition.cc
    369加上一个链接列表plus-one-linked-list.cc
    368大可以分子集largest-divisible-subset.cc
    367有效的完美正方形valid-perfect-square.cc
    366查找二进制树的左边find-leaves-of-binary-tree.cc
    365水和壶问题。water-and-jug-problem.cc
    364nest列表权重和 IInested-list-weight-sum-ii.cc
    363的最大和不大于Kmax-sum-of-sub-matrix-no-larger-than-k.cc
    362设计命中计数器design-hit-counter.cc
    361炸弹攻击敌人。bomb-enemy.cc
    360x360dpi,32位 cmyk排序转换了 arraysort-transformed-array.cc
    359记录器速率限制器logger-rate-limiter.cc
    358重新排列字符串k 距离。rearrange-string-k-distance-apart.cc
    357具有唯一数字值的计数。count-numbers-with-unique-digits.cc
    356线反射line-reflection.cc
    355设计 Twitterdesign-twitter.cc
    354俄语娃娃信封。russian-doll-envelopes.cc
    353设计蛇游戏design-snake-game.cc
    352数据流为不相交间隔data-stream-as-disjoint-intervals.cc
    351安卓解锁模式android-unlock-patterns.cc
    350两个数组2的交集。intersection-of-two-arrays-ii.cc
    349两个数组的交集。intersection-of-two-arrays.cc
    348设计 Tic-Tac-Toedesign-tic-tac-toe.cc
    347Top K 频繁元素top-k-frequent-elements.cc
    346从数据流中移动平均值moving-average-from-data-stream.cc
    345字符串的反向元音。reverse-vowels-of-a-string.cc
    344反向字符串reverse-string.cc
    343整数中断integer-break.cc
    342功率为4.power-of-four.cc
    341展平嵌套列表迭代器flatten-nested-list-iterator.cc
    340带最大K 个字符的长子字符串。longest-substring-with-at-most-k-distinct-characters.cc
    339嵌套列表权重和nested-list-weight-sum.cc
    338计数位counting-bits.cc
    337house-robber-iii.cc
    336回文对palindrome-pairs.cc
    335自交叉self-crossing.cc
    334增加三重子序列。increasing-triplet-subsequence.cc
    333大型BST子树largest-bst-subtree.cc
    332重建行程路径reconstruct-itinerary.cc
    331验证是否对二进制树的序列化进行序列化verify-preorder-serialization-of-a-binary-tree.cc
    330修补 arraypatching-array.cc
    329长增加矩阵中的路径。longest-increasing-path-in-a-matrix.cc
    328奇数链接列表odd-even-linked-list.cc
    327范围和的计数count-of-range-sum.cc
    326功率为3。power-of-three.cc
    325最大大小子数组和等于kmaximum-size-subarray-sum-equals-k.cc
    324摆动排序 IIwiggle-sort-ii.cc
    323无向图中连接组件的数。number-of-connected-components-in-an-undirected-graph.cc
    322硬币更换。coin-change.cc
    321创建最大数字create-maximum-number.cc
    320概括缩写词。generalized-abbreviation.cc
    319灯泡切换器bulb-switcher.cc
    318最大乘积长度的乘积。maximum-product-of-word-lengths.cc
    317距离所有建筑物的距离。shortest-distance-from-all-buildings.cc
    316删除重复的字母remove-duplicate-letters.cc
    315自后的较小数的计数。count-of-smaller-numbers-after-self.cc
    314二叉树垂直序遍历binary-tree-vertical-order-traversal.cc
    313超级丑陋的数字。super-ugly-number.cc
    312Burst气球burst-balloons.cc
    311稀疏矩阵乘法算法sparse-matrix-multiplication.cc
    310最小高度树minimum-height-trees.cc
    309最好的时间购买和出售股票的冷却。best-time-to-buy-and-sell-stock-with-cooldown.cc
    308范围和查询 2D 静音range-sum-query-2d-mutable.cc
    307范围和查询静音range-sum-query-mutable.cc
    306加号additive-number.cc
    305number-of-islands-ii.cc
    304范围和查询 2D 不可变属性range-sum-query-2d-immutable.cc
    303范围和查询不可变range-sum-query-immutable.cc
    302最小 rectangle 包围黑色像素smallest-rectangle-enclosing-black-pixels.cc
    301删除无效括号remove-invalid-parentheses.cc
    300长增加子序列。longest-increasing-subsequence.cc
    299和牛。bulls-and-cows.cc
    298二叉树长连续序列。binary-tree-longest-consecutive-sequence.cc
    297序列化和反序列化二叉树。serialize-and-deserialize-binary-tree.cc
    296最好符合点best-meeting-point.cc
    295从数据流中查找中位数find-median-from-data-stream.cc
    294翻转游戏 IIflip-game-ii.cc
    293翻转游戏flip-game.cc
    292Nim游戏。nim-game.cc
    291Word Patternword-pattern-ii.cc
    290单词 Patternword-pattern.cc
    289游戏游戏。game-of-life.cc
    288独特的词缩写词unique-word-abbreviation.cc
    287找到重复的编号。find-the-duplicate-number.cc
    286墙和门walls-and-gates.cc
    285:在 BST 中的继任者inorder-successor-in-bst.cc
    284peek迭代器peeking-iterator.cc
    283移动零move-zeroes.cc
    282表达式添加运算符expression-add-operators.cc
    281ZigZag 迭代器zigzag-iterator.cc
    280摆动排序wiggle-sort.cc
    279完美方形perfect-squares.cc
    278第一个版本错误。first-bad-version.cc
    277找到名人。find-the-celebrity.cc
    276油漆栅栏paint-fence.cc
    275h 索引h-index-ii.cc
    274h 索引h-index.cc
    273整型到英文单词。integer-to-english-words.cc
    272关闭二进制搜索树值2closest-binary-search-tree-value-ii.cc
    271编码和解码字符串encode-and-decode-strings.cc
    270最近的二进制搜索树值closest-binary-search-tree-value.cc
    269外星词典alien-dictionary.cc
    268未命中编号missing-number.cc
    267回文排列二palindrome-permutation-ii.cc
    266回文排列;palindrome-permutation.cc
    265油漆房二。paint-house-ii.cc
    264丑陋的第二号ugly-number-ii.cc
    263丑陋的数字。ugly-number.cc
    261图有效树graph-valid-tree.cc
    260单号single-number-iii.cc
    2593Sum 小型计算机3 sum-smaller.cc
    258添加数字add-digits.cc
    257二叉树路径binary-tree-paths.cc
    256油漆paint-house.cc
    255在二进制搜索树中验证预序序。verify-preorder-sequence-in-binary-search-tree.cc
    254因子组合factor-combinations.cc
    253会议室见。meeting-rooms-ii.cc
    252会议室meeting-rooms.cc
    251展平 2D 矢量flatten-2d-vector.cc
    250计数Univalue子树count-univalue-subtrees.cc
    249组移动字符串group-shifted-strings.cc
    248Strobogrammatic号strobogrammatic-number-iii.cc
    247Strobogrammatic编号2strobogrammatic-number-ii.cc
    246Strobogrammatic号strobogrammatic-number.cc
    245短字距离三shortest-word-distance-iii.cc
    244短单词距离2shortest-word-distance-ii.cc
    243短单词距离shortest-word-distance.cc
    242有效的变位词valid-anagram.cc
    241添加括号的方法不同。different-ways-to-add-parentheses.cc
    240搜索一个 2D 矩阵search-a-2d-matrix-ii.cc
    239滑动窗口最大宽度sliding-window-maximum.cc
    238array的产品,除了自product-of-array-except-self.cc
    237删除链接列表中的nodedelete-node-in-a-linked-list.cc
    236二元树的最低公共祖先。lowest-common-ancestor-of-a-binary-tree.cc
    235二进制搜索树的最小公共祖先( )。lowest-common-ancestor-of-a-binary-search-tree.cc
    234回文链接列表palindrome-linked-list.cc
    233数字1的数字number-of-digit-one.cc
    232使用堆栈管理器实现队列。implement-queue-using-stacks.cc
    231的功率为2.power-of-two.cc
    230中的最小元素。kth-smallest-element-in-a-bst.cc
    229多数元素 IImajority-element-ii.cc
    228摘要范围summary-ranges.cc
    227基本计算器 IIbasic-calculator-ii.cc
    226反转二叉树invert-binary-tree.cc
    225使用队列实现堆栈。implement-stack-using-queues.cc
    224基本计算器basic-calculator.cc
    223rectangle 区域rectangle-area.cc
    222计数完整的树节点count-complete-tree-nodes.cc
    221最大平方值maximal-square.cc
    220包含重复的IIIcontains-duplicate-iii.cc
    219包含重复的IIcontains-duplicate-ii.cc
    218轮廓问题。the-skyline-problem.cc
    217包含重复的文件。contains-duplicate.cc
    216组合和 IIIcombination-sum-iii.cc
    215Kth在一个 array 中的大元素。kth-largest-element-in-an-array.cc
    214短回文数shortest-palindrome.cc
    213Househouse-robber-ii.cc
    212词搜索word-search-ii.cc
    211添加和搜索字数据结构设计。add-and-search-word-data-structure-design.cc
    210课程计划二course-schedule-ii.cc
    209最小大小子数组和minimum-size-subarray-sum.cc
    208实现 Trie ( 前缀树)implement-trie-prefix-tree.cc
    207课程时间表course-schedule.cc
    206反向链接列表reverse-linked-list.cc
    205同构字符串isomorphic-strings.cc
    204计数质数。count-primes.cc
    203删除链接列表元素remove-linked-list-elements.cc
    202Happyhappy-number.cc
    201位和数字范围bitwise-and-of-numbers-range.cc
    200岛号的number-of-islands.cc
    199二叉树右侧视图binary-tree-right-side-view.cc
    198house-robber.cc
    191数量为32位number-of-1-bits.cc
    190反向位reverse-bits.cc
    189旋转 arrayrotate-array.cc
    188最好的购买和卖出股票IV的时间。best-time-to-buy-and-sell-stock-iv.cc
    187重复DNA序列repeated-dna-sequences.cc
    186字符串2 中的反向单词reverse-words-in-a-string-ii.cc
    179最大数量largest-number.cc
    174地下城游戏dungeon-game.cc
    173二进制搜索树迭代器binary-search-tree-iterator.cc
    172阶乘跟踪零factorial-trailing-zeroes.cc
    171Excel图纸列编号excel-sheet-column-number.cc
    170二和三和数据结构设计。two-sum-iii-data-structure-design.cc
    169多数元素majority-element.cc
    168Excel图纸列标题excel-sheet-column-title.cc
    167两个 Sum II输入 array 是排序的。two-sum-ii-input-array-is-sorted.cc
    166重复小数的分数。fraction-to-recurring-decimal.cc
    165比较版本号compare-version-numbers.cc
    164最大间隙值maximum-gap.cc
    163缺少范围missing-ranges.cc
    162查找峰值元素find-peak-element.cc
    161一个编辑距离one-edit-distance.cc
    160两个链接列表的交集。intersection-of-two-linked-lists.cc
    159带有最多两个字符的长子串。longest-substring-with-at-most-two-distinct-characters.cc
    158读取给定 Read4 II的字符- 调用多次。read-n-characters-given-read4-ii-call-multiple-times.cc
    157读取给定的Read4字符read-n-characters-given-read4.cc
    156二叉树倒倒。binary-tree-upside-down.cc
    155最小堆栈类型min-stack.cc
    154在旋转排序的array II中查找最小值find-minimum-in-rotated-sorted-array-ii.cc
    153在旋转排序 array 中查找最小值find-minimum-in-rotated-sorted-array.cc
    152最大产品子阵列maximum-product-subarray.cc
    151字符串中的反向单词。reverse-words-in-a-string.cc
    150求值反向波兰符号evaluate-reverse-polish-notation.cc
    149上的点max-points-on-a-line.cc
    148排序列表sort-list.cc
    147插入排序列表insertion-sort-list.cc
    146LRU缓存lru-cache.cc
    145二叉树后向遍历binary-tree-postorder-traversal.cc
    144二叉树序遍历binary-tree-preorder-traversal.cc
    143重新排序列表reorder-list.cc
    142链接列表周期2linked-list-cycle-ii.cc
    141链接列表循环linked-list-cycle.cc
    140单词中断2word-break-ii.cc
    139断字符word-break.cc
    138带随机指针的复制列表copy-list-with-random-pointer.cc
    137单编号 IIsingle-number-ii.cc
    136单编号single-number.cc
    135糖果candy.cc
    134加油站gas-station.cc
    133克隆图clone-graph.cc
    132回文分区2palindrome-partitioning-ii.cc
    131回文分区palindrome-partitioning.cc
    130环绕区域surrounded-regions.cc
    129和 root 到叶号。sum-root-to-leaf-numbers.cc
    128最长连续序列longest-consecutive-sequence.cc
    127word-ladder.cc
    126Wordword-ladder-ii.cc
    125有效的回文数valid-palindrome.cc
    124二叉树最大路径和binary-tree-maximum-path-sum.cc
    123购买和卖出股票III的最佳时机。best-time-to-buy-and-sell-stock-iii.cc
    122最好的购买和卖出股票二的时间。best-time-to-buy-and-sell-stock-ii.cc
    121最好的购买和卖出股票的时间。best-time-to-buy-and-sell-stock.cc
    120三角形triangle.cc
    119pascal II的三角形pascals-triangle-ii.cc
    118pascal的三角形pascals-triangle.cc
    117在每个 node II中填充下一个右指针。populating-next-right-pointers-in-each-node-ii.cc
    116在每个 node 对象中填充下一个右指针。populating-next-right-pointers-in-each-node.cc
    115Distinct子序列distinct-subsequences.cc
    114将二叉树平平到链链表中。flatten-binary-tree-to-linked-list.cc
    113路径和 IIpath-sum-ii.cc
    112路径和path-sum.cc
    111最小二进树的最小深度minimum-depth-of-binary-tree.cc
    110平衡二叉树balanced-binary-tree.cc
    109将排序列表转换为二进制搜索树convert-sorted-list-to-binary-search-tree.cc
    108将排序 array 转换为二进制搜索树convert-sorted-array-to-binary-search-tree.cc
    107二叉树级序遍历二binary-tree-level-order-traversal-ii.cc
    106构造二叉树和后向遍历的二叉树。construct-binary-tree-from-inorder-and-postorder-traversal.cc
    105构造二叉树,从预定和Inorder遍历。construct-binary-tree-from-preorder-and-inorder-traversal.cc
    104最大二进树树的最大深度。maximum-depth-of-binary-tree.cc
    103二叉树 ZigZag 级顺序遍历binary-tree-zigzag-level-order-traversal.cc
    102二叉树级序遍历binary-tree-level-order-traversal.cc
    101对称树symmetric-tree.cc
    100同样的树。same-tree.cc
    99恢复二叉搜索树。recover-binary-search-tree.cc
    98验证二进制搜索树validate-binary-search-tree.cc
    97交错字符串interleaving-string.cc
    96独特的二叉搜索树。unique-binary-search-trees.cc
    95唯一二叉搜索树2unique-binary-search-trees-ii.cc
    94二叉树Inorder遍历。binary-tree-inorder-traversal.cc
    93还原IP地址restore-ip-addresses.cc
    92反向链接列表 IIreverse-linked-list-ii.cc
    91解码方式:decode-ways.cc
    90°旋转速度子集subsets-ii.cc
    89Gray代码gray-code.cc
    88合并的arraymerge-sorted-array.cc
    87置乱字符串scramble-string.cc
    86分区列表partition-list.cc
    85最大 rectangle 值maximal-rectangle.cc
    84直方图中的大 rectanglelargest-rectangle-in-histogram.cc
    83从排序列表中删除重复项remove-duplicates-from-sorted-list.cc
    82从排序列表中删除重复项2remove-duplicates-from-sorted-list-ii.cc
    81在旋转排序的II中搜索 Searchsearch-in-rotated-sorted-array-ii.cc
    80从排序 array II中删除重复项remove-duplicates-from-sorted-array-ii.cc
    79字搜索工具word-search.cc
    78子集subsets.cc
    77组合combinations.cc
    76最小窗口子字符串minimum-window-substring.cc
    75排序颜色sort-colors.cc
    74搜索 2D 矩阵search-a-2d-matrix.cc
    73集合矩阵0set-matrix-zeroes.cc
    72编辑距离edit-distance.cc
    71简化路径simplify-path.cc
    70爬楼梯。climbing-stairs.cc
    69Sqrt(x)sqrtx.cc
    68文本对齐方式text-justification.cc
    67添加二进制文件add-binary.cc
    66加一个。plus-one.cc
    65有效数字valid-number.cc
    64最小路径总和minimum-path-sum.cc
    63唯一路径2unique-paths-ii.cc
    62唯一路径unique-paths.cc
    61旋转列表rotate-list.cc
    60排列序列permutation-sequence.cc
    59spiral 矩阵 IIspiral-matrix-ii.cc
    58最后一个单词的长度( 以字节为单位)length-of-last-word.cc
    57插入间隔insert-interval.cc
    56合并间隔merge-intervals.cc
    55跳跃游戏jump-game.cc
    54spiral 矩阵spiral-matrix.cc
    53最大子阵列数maximum-subarray.cc
    52皇后n-queens-ii.cc
    51n 皇后n-queens.cc
    50电源管理单元powx-n.cc
    48旋转图像rotate-image.cc
    47排列permutations-ii.cc
    46排列permutations.cc
    45跳转游戏2.jump-game-ii.cc
    44通配符匹配wildcard-matching.cc
    43乘法字符串multiply-strings.cc
    42捕获雨水trapping-rain-water.cc
    41第一次失手。first-missing-positive.cc
    40组合和 IIcombination-sum-ii.cc
    39组合和combination-sum.cc
    38计数并说count-and-say.cc
    37数独解算器sudoku-solver.cc
    36有效的数独代码valid-sudoku.cc
    35搜索插入位置search-insert-position.cc
    34搜索范围范围。search-for-a-range.cc
    33在旋转的array 中搜索 search-in-rotated-sorted-array.cc
    32长有效括号longest-valid-parentheses.cc
    31下一排列。next-permutation.cc
    30带有所有单词的串联的子字符串。substring-with-concatenation-of-all-words.cc
    29划分两个整数。divide-two-integers.cc
    28实现 strStr()implement-strstr.cc
    27移除元素remove-element.cc
    26从排序 array 中删除重复项remove-duplicates-from-sorted-array.cc
    25k 组中的反向节点reverse-nodes-in-k-group.cc
    24交换节点成对。swap-nodes-in-pairs.cc
    23合并k 排序列表merge-k-sorted-lists.cc
    22生成括号generate-parentheses.cc
    21合并两个已经排序的列表merge-two-sorted-lists.cc
    20有效括号valid-parentheses.cc
    19从列表的末尾删除第n 个 noderemove-nth-node-from-end-of-list.cc
    184Sum4 sum.cc
    17一个电话号码的字母组合。letter-combinations-of-a-phone-number.cc
    163Sum 关闭3 sum-closest.cc
    153Sum3 sum.cc
    14最长公共前缀longest-common-prefix.cc
    13罗马数字到整数roman-to-integer.cc
    12整数到罗马数字。integer-to-roman.cc
    11带有大多数水的容器。container-with-most-water.cc
    10正则表达式匹配regular-expression-matching.cc
    9回文数palindrome-number.cc
    8字符串到整数( atoi )string-to-integer-atoi.cc
    7反向整数reverse-integer.cc
    6ZigZag 转换功能zigzag-conversion.cc
    5长循环子字符串longest-palindromic-substring.cc
    4两种排序数组的中值median-of-two-sorted-arrays.cc
    3不带重复字符字符的长子串longest-substring-without-repeating-characters.cc
    2添加两个数字。add-two-numbers.cc
    1二求和。two-sum.cc

    相关文章