Record daily training algorithms and data structures by Swift. If you like them, then give me a star❤️, thanks!
- 数组 Array
- 字典 Dictionary
- 集合 Collection
- 字符串 String
- 链表 Link
- 栈 Stack
- 队列 Queue
- 二叉树 Tree
- 排序 Sort
- 搜索 Search
- 动态规划 Dynamic
- 贪心算法 Greedy
- 两数之和 Two Sum
- 两数相加 Add Two Number
- 无重复字符的最长子串 LengthOfLongestSubstring
- 寻找两个有序数组的中位数 FindMedianSortedArrays
- Z 字形变换 ZigCovert
- 整数反转 ReverseInteger
- 回文数 ValidPalindrome
- 三数之和 ThreeSum
- 删除链表的倒数第N个节点 RemoveNthFromEnd
- 有效括号 Valid Parenthese
- 合并两个有序链表 Merge Two Lists
- 两两交换链表中的节点 Swap Pairs
- 删除有序数组中的重复项 Remove Duplicates
- 缺失数字 Miss Number
- 分糖果 Distribute Candies
- 移除元素 RemoveElement
- 盛最多水的容器 MaxArea
- 最长公共前缀 LongestCommonPrefix
- 接雨水 TrapRainWater
- 搜索插入位置 SearchInsertPosition
- 最后一个单词的长度 LengthOfLastWord
- 报数 CountToSay