Skip to content

songtangjie/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode部分习题OC版,包括多种解法,时间复杂度和空间复杂度自行分析。

Day01 逆波兰表达式求值 https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/

Day02 合并两个有序链表 https://leetcode-cn.com/problems/merge-two-sorted-lists/

Day03 合并K个排序链表 https://leetcode-cn.com/problems/merge-k-sorted-lists/

Day04 验证二叉搜索树 https://leetcode-cn.com/problems/validate-binary-search-tree/

Day05 二叉树中的最大路径和 https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/

Day06 二叉树展开为链表 https://leetcode-cn.com/problems/flatten-binary-tree-to-linked-list/

Day07 动态规划:打家劫舍 https://leetcode-cn.com/problems/house-robber/

Day08 前 K 个高频元素 https://leetcode-cn.com/problems/top-k-frequent-elements/submissions/

Day09 有效的数独 https://leetcode-cn.com/problems/valid-sudoku/

Day10 获取字符串里的回文子串

Day11 摆动排序 https://leetcode-cn.com/problems/wiggle-sort-ii/

Day12 寻找重复数 https://leetcode-cn.com/problems/find-the-duplicate-number/

Day13 搜索二维矩阵存在某个数字 https://leetcode-cn.com/problems/search-a-2d-matrix-ii/

Day14 合并两个有序数组 https://leetcode-cn.com/problems/merge-sorted-array/

Day15 寻找旋转排序数组中的最小值 https://leetcode-cn.com/problems/find-minimum-in-rotated-sorted-array-ii/

Day16 按奇偶排序数组 https://leetcode-cn.com/problems/sort-array-by-parity/

Day17 删除链表的倒数第N个节点 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/

Day18 另一个树的子树 https://leetcode-cn.com/problems/subtree-of-another-tree/

Day19 删除排序链表中的重复元素 II https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list-ii/

Day20 正则表达式匹配 https://leetcode-cn.com/problems/regular-expression-matching/

Day21 对称二叉树 https://leetcode-cn.com/problems/symmetric-tree/

Day22 最小栈 https://leetcode-cn.com/problems/min-stack/

Day23 复制带随机指针的链表 https://leetcode-cn.com/problems/copy-list-with-random-pointer/

Day24 将二叉搜索树转化为排序的双向链表 https://leetcode-cn.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/

Day25 二叉树的序列化与反序列化 https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/

Day27 最大子序和 https://leetcode-cn.com/problems/maximum-subarray/submissions/

Day28 数字 1 的个数 https://leetcode-cn.com/problems/number-of-digit-one/comments/

Day29 第N个数字 https://leetcode-cn.com/problems/nth-digit/submissions/

Day31 无重复字符的最长子串 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/

Day32 丑数 https://leetcode-cn.com/problems/ugly-number/

Day33 字符串中的第一个唯一字符 https://leetcode-cn.com/problems/first-unique-character-in-a-string/

Day34 数组中的逆序对 https://leetcode-cn.com/problems/shu-zu-zhong-de-ni-xu-dui-lcof/submissions/

Day35 相交链表 https://leetcode-cn.com/problems/intersection-of-two-linked-lists/

Day36 在排序数组中查找元素的第一个和最后一个位置 https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/submissions/

Day37 0~n-1中缺失的数字 https://leetcode-cn.com/problems/que-shi-de-shu-zi-lcof/

Day38 二叉搜索树的第k大节点 https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof/

Day39 平衡二叉树 https://leetcode-cn.com/problems/balanced-binary-tree/

Day40 只出现一次的数字 III https://leetcode-cn.com/problems/single-number-iii/

Day41 和为s的两个数字 https://leetcode-cn.com/problems/he-wei-sde-liang-ge-shu-zi-lcof/submissions/

Day42 和为s的连续正数序列 https://leetcode-cn.com/problems/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/submissions/

Day43 翻转字符串里的单词 https://leetcode-cn.com/problems/reverse-words-in-a-string/submissions/

Day44 n个骰子的点数 https://leetcode-cn.com/problems/nge-tou-zi-de-dian-shu-lcof/

Day45 扑克牌中的顺子 https://leetcode-cn.com/problems/bu-ke-pai-zhong-de-shun-zi-lcof/

Day46 圆圈中最后剩下的数字 https://leetcode-cn.com/problems/yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof/

Day47 求1+2+…+n https://leetcode-cn.com/problems/qiu-12n-lcof/

Day48 不用加减乘除做加法 https://leetcode-cn.com/problems/bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof/

About

LeetCode部分习题OC版

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published