Skip to content

Jerring/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

二分查找

# Link 链接
00004 Median of Two Sorted Arrays 寻找两个有序数组的中位数
00033 Search in Rotated Sorted Array 搜索旋转排序数组
00034 Find First and Last Position of Element in Sorted Array 在排序数组中查找元素的第一个和最后一个位置
00035 Search Insert Position 搜索插入位置
00069 Sqrt(x) x 的平方根
00074 Search a 2D Matrix 搜索二维矩阵
00081 Search in Rotated Sorted Array II 搜索旋转排序数组 II
00153 Find Minimum in Rotated Sorted Array 寻找旋转排序数组中的最小值
00154 Find Minimum in Rotated Sorted Array II 寻找旋转排序数组中的最小值 II
00162 Find Peak Element 寻找峰值
00240 Search a 2D Matrix II 搜索二维矩阵 II
00275 H-Index II H指数 II
00278 First Bad Version 第一个错误的版本
00367 Valid Perfect Square 有效的完全平方数
00374 Guess Number Higher or Lower 猜数字大小
00410 Split Array Largest Sum 分割数组的最大值
00441 Arranging Coins 排列硬币
00475 Heaters 供暖器
00483 Smallest Good Base 最小好进制
00540 Single Element in a Sorted Array 有序数组中的单一元素
00704 Binary Search 二分查找
00744 Find Smallest Letter Greater Than Target 寻找比目标字母大的最小字母
00852 Peak Index in a Mountain Array 山脉数组的封顶索引
00875 Koko Eating Bananas 爱吃香蕉的珂珂
00878 Nth Magical Number 第 N 个神奇数字
01095 Find in Mountain Array 山脉数组中查找目标值

链表

# Link 链接
00002 Add Two Numbers 两数相加
00019 Remove Nth Node From End of List 删除链表的倒数第N个节点
00021 Merge Two Sorted Lists 合并两个有序链表
00023 Merge k Sorted Lists 合并K个排序链表
00024 Swap Nodes in Pairs 两两交换链表中的节点
00025 Reverse Nodes in k-Group k个一组翻转链表
00061 Rotate List 旋转链表
00082 Remove Duplicates from Sorted List II 删除排序链表中的重复元素 II
00083 Remove Duplicates from Sorted List 删除排序链表中的重复元素
00086 Partition List 分隔链表
00092 Reverse Linked List II 反转链表 II
00138 Copy List with Random Pointer 复制带随机指针的链表
00141 Linked List Cycle 环形链表
00142 Linked List Cycle II 环形链表 II
00143 Reorder List 重排链表
00147 Insertion Sort List 对链表进行插入排序
00148 Sort List 排序链表
00160 Intersection of Two Linked Lists 相交链表
00203 Remove Linked List Elements 移除链表元素
00206 Reverse Linked List 反转链表
00234 Palindrome Linked List 回文链表
00237 Delete Node in a Linked List 删除链表中的结点
00328 Odd Even Linked List 奇偶链表
00430 Flatten a Multilevel Doubly Linked List 扁平化多级双向链表
00445 Add Two Numbers II 两数相加 II
00725 Split Linked List in Parts 分隔链表
00817 Linked List Components 链表组件
00876 Middle of the Linked List 链表的中间结点

栈 / 队列

# Link 链接
00020 Valid Parentheses 有效的括号
00084 Largest Rectangle in Histogram 柱状图中最大的矩形
00150 Evaluate Reverse Polish Notation 逆波兰表达式求值
00155 Min Stack 最小栈
00224 Basic Calculator 基本计算器
00225 Implement Stack using Queues 用队列实现栈
00227 Basic Calculator II 基本计算器 II
00232 Implement Queue using Stacks 用栈实现队列
00316 Remove Duplicate Letters 去除重复字母
00341 Flatten Nested List Iterator 扁平化嵌套列表迭代器
00456 132 Pattern 132模式
00496 Next Greater Element I 下一个更大元素 I
00503 Next Greater Element II 下一更大元素 II
00739 Daily Temperatures 每日温度
00844 Backspace String Compare 比较含退格的字符
00856 Score of Parentheses 括号的分数
00862 Shortest Subarray with Sum at Least K 和至少为 K 的最短子数组
01019 Next Greater Node In Linked List 链表中的下一个更大节点
01021 Remove Outermost Parentheses 删除最外层的括号
01047 Remove All Adjacent Duplicates In String 删除字符串中的所有相邻重复项
01081 Smallest Subsequence of Distinct Characters 不同字符的最小子序列

滑动窗口

# Link 链接
00003 Longest Substring Without Repeating Characters 无重复字符的最长字串
00030 Substring with Concatenation of All Words 串联所有单词的字串
00076 Minimum Window Substring 最小覆盖子串
00209 Minimum Size Subarray Sum 长度最小的子数组
00239 Sliding Window Maximum 滑动窗口最大值
00424 Longest Repeating Character Replacement 替换后的最长重复字符
00438 Find All Anagrams in a String 找到字符串中所有字母异位词
00567 Permutation in String 字符串的排列
01004 Max Consecutive Ones III 最大连续1的个数 III
01052 Grumpy Bookstore Owner 爱生气的书店老板
01156 Swap For Longest Repeated Character Substring 单字符重复子串的最大长度

# Link 链接
00295 Find Median from Data Stream 数据流的中位数
00347 Top K Frequent Elements 前K个高频元素
00692 Top K Frequent Words 前K个高频单词
00703 Kth Largest Element in a Stream 数据流中的第K大元素
00857 Minimum Cost to Hire K Workers 雇佣 K 名工人的最低成本
01046 Last Stone Weight 最后一块石头的重量

哈希表

# Link 链接
00001 Two Sum 两数之和
00036 Valid Sudoku 有效的数独
00049 Group Anagrams 字母异位词分组
00128 Longest Consecutive Sequence 最长连续序列
00149 Max Points on a Line 直线上最多的点数
00202 Happy Number 快乐数
00205 Isomorphic Strings 同构字符串
00219 Contains Duplicate II 存在重复元素 II
00220 Contains Duplicate III 存在重复元素 III
00274 H-Index H指数
00290 Word Pattern 单词模式
00299 Bulls and Cows 猜数字游戏
00355 Design Twitter 设计推特
00409 Longest Palindrome 最长回文串
00447 Number of Boomerangs 回旋镖的数量
00454 4Sum II 四数相加 II
00463 Island Perimeter 岛屿的周长
00500 Keyboard Row 键盘行
00525 Contiguous Array 连续数组
00554 Brick Wall 砖墙
00560 560. Subarray Sum Equals K 和为K的子数组
00575 Distribute Candies 分糖果
00594 Longest Harmonious Subsequence 最长和谐子序列
00599 Minimum Index Sum of Two Lists 两个列表的最小索引总和
00609 Find Duplicate File in System 在系统中查找重复文件
00645 Set Mismatch 错误的集合
00771 Jewels and Stones 宝石与石头
00748 Shortest Completing Word 最短完整词
00930 Binary Subarrays With Sum 和相同的二元子数组
01002 Find Common Characters 查找常用字符
01072 Flip Columns For Maximum Number of Equal Rows 按列翻转得到最大值等行数
01094 Car Pooling 拼车
01138 Alphabet Board Path 字母板上的路径

数组

# Link 链接
00015 3Sum 三数之和
00016 3Sum Closest 最接近的三数之和
00018 4Sum 四数之和
00026 Remove Duplicates from Sorted Array 删除排序数组中的重复项
00027 Remove Element 移除元素
00031 Next Permutation 下一个排列
00041 First Missing Positive 缺失的第一个正数
00048 Rotate Image 旋转图像
00054 Spiral Matrix 螺旋矩阵
00056 Merge Intervals 合并区间
00057 Insert Interval 插入区间
00059 Spiral Matrix II 螺旋矩阵 II
00066 Plus One 加一
00080 Remove Duplicates from Sorted Array II 删除排序数组中的重复项 II
00088 Merge Sorted Array 合并两个有序数组
00189 Rotate Array 旋转数组
00217 Contains Duplicate 存在重复元素
00228 Summary Ranges 汇总区间
00229 Majority Element II 求众数 II
00238 Product of Array Except Self 除自身以外数组的乘积
00283 Move Zeroes 移动零
00287 Find the Duplicate Number 寻找重复数
00384 Shuffle an Array 打乱数组
00414 Third Maximum Number 第三大的数
00442 Find All Duplicates in an Array 数组中重复的数据
00485 Max Consecutive Ones 最大连续1的个数
00509 Fibonacci Number 斐波那契数
00581 Shortest Unsorted Continuous Subarray 最短无序连续子数组
00674 Longest Continuous Increasing Subsequence 最长连续递增序列
00724 Find Pivot Index 寻找数组的中心索引
00832 Flipping an Image 翻转图像
00905 Sort Array By Parity 按奇偶排序数组
00918 Maximum Sum Circular Subarray 环形子数组的最大和
00989 Add to Array-Form of Integer 数组形式的整数加法
01053 Previous Permutation With One Swap 交换一次的先前排列
01089 Duplicate Zeros 复写零
01109 Corporate Flight Bookings 航班预订统计
01124 Longest Well-Performing Interval 表现良好的最长时间段
01128 Number of Equivalent Domino Pairs 等价多米诺骨牌对的数量
01144 Decrease Elements To Make Array Zigzag 递减元素使数组呈锯齿状

双指针

# Link 链接
00011 Container With Most Water 盛最多水的容器
00028 Implement strStr() 实现strStr()
00042 Trapping Rain Water 接雨水
00125 Valid Palindrome 验证回文串
00167 Two Sum II - Input array is sorted 两数之和 II - 输入有序数组
00345 Reverse Vowels of a String 反转字符串中的元音字母
00349 Intersection of Two Arrays 两个数组的交集
00350 Intersection of Two Arrays II 两个数组的交集 II
00532 K-diff Pairs in an Array 数组中的K-diff数对
00611 Valid Triangle Number 有效三角形的个数
00632 Smallest Range 最小区间
00633 Sum of Square Numbers 平方数之和
00845 Longest Mountain in Array 数组中的最长山脉
00881 Boats to Save People 救生艇
00923 3Sum With Multiplicity 三数之和的多种可能
00925 Long Pressed Name 长按键入
00977 Squares of a Sorted Array 有序数组的平方
00986 Interval List Intersections 区间列表的交集

字符串

# Link 链接
00005 Longest Palindromic Substring 最长回文子串
00006 ZigZag Conversion Z 字形变换
00014 Longest Common Prefix 最长公共前缀
00038 Count and Say 报数
00043 Multiply Strings 字符串相乘
00058 Length of Last Word 最后一个单词的长度
00067 Add Binary 二进制求和
00071 Simplify Path 简化路径
00151 Reverse Words in a String 翻转字符串里的单词
00165 Compare Version Numbers 比较版本号
00242 Valid Anagram 有效的字母异位词
00273 Integer to English Words 整数转换英文表示
00344 Reverse String 反转字符串
00383 Ransom Note 赎金信
00387 First Unique Character in a String 字符串中第一个唯一字符
00415 Add Strings 字符串相加
00434 Number of Segments in a String 字符串中的单词数
00443 String Compression 压缩字符串
00459 Repeated Substring Pattern 重复的子字符串
00473 Matchsticks to Square 火柴拼正方形
00556 Next Greater Element III 下一个更大元素 III
00557 Reverse Words in a String III 反转字符串中的单词 III
00709 To Lower Case 转换成小写字母
00890 Find and Replace Pattern 查找和替换模式
00917 Reverse Only Letters 仅仅反转字母
00929 Unique Email Addresses 独特的电子邮件地址
01071 Greatest Common Divisor of Strings 字符串的最大公因子
01078 Occurrences After Bigram Bigram 分词
01108 Defanging an IP Address IP 地址无效化
01111 Maximum Nesting Depth of Two Valid Parentheses Strings 有效括号的嵌套深度
01147 Longest Chunked Palindrome Decomposition 段式回文

二叉树

# Link 链接
00094 Binary Tree Inorder Traversal 二叉树的中序遍历
00098 Validate Binary Search Tree 验证二叉搜索树
00100 Same Tree 相同的树
00101 Symmetric Tree 对称二叉树
00102 Binary Tree Level Order Traversal 二叉树的层次遍历
00103 Binary Tree Zigzag Level Order Traversal 二叉树的锯齿形层次遍历
00104 Maximum Depth of Binary Tree 二叉树的最大深度
00105 Construct Binary Tree from Preorder and Inorder Traversal 从前序与中序遍历序列构造二叉树
00106 Construct Binary Tree from Inorder and Postorder Traversal 从中序与后序遍历序列构造二叉树
00107 Binary Tree Level Order Traversal II 二叉树的层次遍历 II
00108 Convert Sorted Array to Binary Search Tree 将有序数组转换为二叉搜索树
00109 Convert Sorted List to Binary Search Tree 有序链表转换二叉搜索树
00110 Balanced Binary Tree 平衡二叉树
00111 Minimum Depth of Binary Tree 二叉树的最小深度
00112 Path Sum 路径总和
00113 Path Sum II 路径总和 II
00114 Flatten Binary Tree to Linked List 二叉树展开为链表
00116 Populating Next Right Pointers in Each Node 填充每个节点的下一个右侧节点指针
00117 Populating Next Right Pointers in Each Node II 填充每个节点的下一个右侧节点指针 II
00124 Binary Tree Maximum Path Sum 二叉树中的最大路径和
00129 Sum Root to Leaf Numbers 求根到叶子节点数字之和
00144 Binary Tree Preorder Traversal 二叉树的前序遍历
00145 Binary Tree Postorder Traversal 二叉树的后序遍历
00173 Binary Search Tree Iterator 二叉搜索树迭代器
00199 Binary Tree Right Side View 二叉树的右视图
00222 Count Complete Tree Nodes 完全二叉树的节点个数
00226 Invert Binary Tree 翻转二叉树
00230 Kth Smallest Element in a BST 二叉搜索树中第K小的元素
00235 Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的最近公共祖先
00236 Lowest Common Ancestor of a Binary Tree 二叉树的最近公共祖先
00297 Serialize and Deserialize Binary Tree 二叉树的序列化与反序列化
00331 Verify Preorder Serialization of a Binary Tree 验证二叉树的前序序列化
00337 House Robber III 打家劫舍 III
00404 Sum of Left Leaves 左叶子之和
00429 N-ary Tree Level Order Traversal N叉树的层序遍历
00437 Path Sum III 路径总和 III
00449 Serialize and Deserialize BST 序列化和反序列化二叉搜索树
00450 Delete Node in a BST 删除二叉搜索树中的节点
00508 Most Frequent Subtree Sum 出现次数最多的子树元素和
00513 Find Bottom Left Tree Value 找树左下角的值
00515 Find Largest Value in Each Tree Row 在每个树行中找最大值
00530 Minimum Absolute Difference in BST 二叉搜索树的最小绝对差
00538 Convert BST to Greater Tree 把二叉搜索树转换为累加树
00543 Diameter of Binary Tree 二叉树的直径
00559 Maximum Depth of N-ary Tree N叉树的最大深度
00563 Binary Tree Tilt 二叉树的坡度
00572 Subtree of Another Tree 另一个树的子树
00589 N-ary Tree Preorder Traversal N叉树的前序遍历
00590 N-ary Tree Postorder Traversal N叉树的后序遍历
00606 Construct String from Binary Tree 根据二叉树创建字符串
00617 Merge Two Binary Trees 合并二叉树
00637 Average of Levels in Binary Tree 二叉树的层平均值
00652 Find Duplicate Subtrees 寻找重复的子树
00653 Two Sum IV - Input is a BST 两数之和 IV - 输入 BST
00654 Maximum Binary Tree 最大二叉树
00669 Trim a Binary Search Tree 修剪二叉搜索树
00687 Longest Univalue Path 最长同值路径
00700 Search in a Binary Search Tree 二叉搜索树中的搜索
00701 Insert into a Binary Search Tree 二叉搜索树中的插入操作
00783 Minimum Distance Between BST Nodes 二叉搜索树结点的最小距离
00814 Binary Tree Pruning 二叉树剪枝
00872 Leaf-Similar Trees 叶子相似的树
00897 Increasing Order Search Tree 递增顺序查找树
00938 Range Sum of BST 二叉搜索树的范围和
00958 Check Completeness of a Binary Tree 二叉树的完全性检验
00965 Univalued Binary Tree 单值二叉树
00987 Vertical Order Traversal of a Binary Tree 二叉树的垂序遍历
01022 Sum of Root To Leaf Binary Numbers 从根到叶的二进制数之和
01026 Maximum Difference Between Node and Ancestor 节点与其祖先之间的最大差值
01080 Insufficient Nodes in Root to Leaf Paths 根到叶路径上的不足节点
01104 Path In Zigzag Labelled Binary Tree 二叉树寻路
01110 Delete Nodes And Return Forest 删点成林
01123 Lowest Common Ancestor of Deepest Leaves 最深叶节点的最近公共祖先

# Link 链接
00133 Clone Graph 克隆图

排序

# Link 链接
00075 Sort Colors 颜色分类
00215 Kth Largest Element in an Array 数组中的第K个最大元素
00451 Sort Characters By Frequency 根据字符出现频率排序
00506 Relative Ranks 相对名次
01051 Height Checker 高度检查器
01054 Distant Barcodes 距离相等的条形码
01122 Relative Sort Array 数组的相对排序

贪心

# Link 链接
00045 Jump Game II 跳跃游戏 II
00055 Jump Game 跳跃游戏
00122 Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II
00134 Gas Station 加油站
00392 Is Subsequence 判断子序列
00402 Remove K Digits 移掉K位数字
00406 Queue Reconstruction by Height 根据身高重建队列
00435 Non-overlapping Intervals 无重叠区间
00452 Minimum Number of Arrows to Burst Balloons 用最少数量的箭引爆气球
00455 Assign Cookies 分发饼干
00605 Can Place Flowers 种花问题
00646 Maximum Length of Pair Chain 最长数对链
00665 Non-decreasing Array 非递减数列
00763 Partition Labels 划分字母区间
00860 Lemonade Change 柠檬水找零
01090 Largest Values From Labels 受标签影响的最大值

动态规划

# Link 链接
00032 Longest Valid Parentheses 最长有效括号
00053 Maximum Subarray 最大子序和
00062 Unique Paths 不同路径
00063 Unique Paths II 不同路径 II
00064 Minimum Path Sum 最小路径和
00070 Climbing Stairs 爬楼梯
00072 Edit Distance 编辑距离
00091 Decode Ways 解码方法
00095 Unique Binary Search Trees II 不同的二叉搜索树 II
00096 Unique Binary Search Trees 不同的二叉搜索树
00097 Interleaving String 交错字符串
00115 Distinct Subsequences 不同的子序列
00118 Pascal's Triangle 杨辉三角
00119 Pascal's Triangle II 杨辉三角 II
00120 Triangle 三角形最小路径和
00121 Best Time to Buy and Sell Stock 买卖股票的最佳时机
00132 Palindrome Partitioning II 分割回文串 II
00139 Word Break 单词拆分
00198 House Robber 打家劫舍
00213 House Robber II 打家劫舍 II
00221 Maximal Square 最大正方形
00264 Ugly Number II 丑数 II
00279 Perfect Squares 完全平方数
00300 Longest Increasing Subsequence 最长上升子序列
00303 Range Sum Query - Immutable 区域和检索 - 数组不可变
00304 Range Sum Query 2D - Immutable 二维区域和检索 - 矩阵不可变
00309 Best Time to Buy and Sell Stock with Cooldown 最佳买卖股票时机含冷冻期
00322 Coin Change 零钱兑换
00329 Longest Increasing Path in a Matrix 矩阵中的最长递增路径
00338 Counting Bits 比特位计数
00343 Integer Break 整数拆分
00354 Russian Doll Envelopes 俄罗斯套娃信封问题
00376 Wiggle Subsequence 摆动序列
00377 Combination Sum IV 组合总和 IV
00413 Arithmetic Slices 等差数列划分
00416 Partition Equal Subset Sum 分割等和子集
00474 Ones and Zeroes 一和零
00486 Predict the Winner 预测赢家
00494 Target Sum 目标和
00518 Coin Change 2 零钱兑换 II
00526 Beautiful Arrangement 优美的排列
00576 Out of Boundary Paths 出界的路径数
00664 Strange Printer 奇怪的打印机
00673 Number of Longest Increasing Subsequence 最长递增子序列的个数
00714 Best Time to Buy and Sell Stock with Transaction Fee 买卖股票的最佳时机含手续费
00746 Min Cost Climbing Stairs 使用最小花费爬楼梯
00931 Minimum Falling Path Sum 下降路径最小和
00978 Longest Turbulent Subarray 最长湍流子数组
01048 Longest String Chain 最长字符串链
01049 Last Stone Weight II 最后一块石头的重量 II
01137 N-th Tribonacci Number 第 N 个泰波那契数
01139 Largest 1-Bordered Square 最大的以 1 为边界的正方形
01140 Stone Game II 石子游戏 II
01155 Number of Dice Rolls With Target Sum 掷骰子的N种方法

分治

# Link 链接
00050 Pow(x, n) Pow(x, n)
00169 Majority Element 求众数
00241 Different Ways to Add Parentheses 为运算表达式设计优先级

搜索

# Link 链接
00017 Letter Combinations of a Phone Number 电话号码的字母组合
00037 Sudoku Solver 解数独
00039 Combination Sum 组合总和
00040 Combination Sum II 组合总和 II
00046 Permutations 全排列
00047 Permutations II 全排列 II
00051 N-Queens N皇后
00052 N-Queens II N皇后 II
00060 Permutation Sequence 第k个排列
00077 Combinations 组合
00078 Subsets 子集
00079 Word Search 单词搜索
00090 Subsets II 子集 II
00093 Restore IP Addresses 复原IP地址
00127 Word Ladder 单词接龙
00130 Surrounded Regions 被围绕的区域
00131 Palindrome Partitioning 分割回文串
00200 Number of Islands 岛屿的个数
00216 Combination Sum III 组合总和 III
00257 Binary Tree Paths 二叉树的所有路径
00417 Pacific Atlantic Water Flow 太平洋大西洋水流问题
00542 01 Matrix 01 矩阵
00690 Employee Importance 员工的重要性
00695 Max Area of Island 岛屿的最大面积
00733 Flood Fill 图像渲染
00784 Letter Case Permutation 字母大小写全排列
01034 Coloring A Border 边框着色
01079 Letter Tile Possibilities 活字印刷
01091 Shortest Path in Binary Matrix 二进制矩阵中的最短路径

并查集

# Link 链接
00547 Friend Circles 朋友圈
00684 Redundant Connection 冗余连接

位运算

# Link 链接
00136 Single Number 只出现一次的数字
00137 Single Number II 只出现一次的数字 II
00187 Repeated DNA Sequences 重复的DNA序列
00190 Reverse Bits 颠倒二进制位
00191 Number of 1 Bits 位1的个数
00201 Bitwise AND of Numbers Range 数字范围按位与
00231 Power of Two 2的幂
00260 Single Number III 只出现一次的数字 III
00268 Missing Number 缺失数字
00318 Maximum Product of Word Lengths 最大单词长度乘积
00342 Power of Four 4的幂
00371 Sum of Two Integers 两整数之和
00389 Find the Difference 找不同
00393 UTF-8 Validation UTF-8编码验证
00397 Integer Replacement 整数替换
00401 Binary Watch 二进制手表
00405 Convert a Number to Hexadecimal 数字转换为十六进制数
00461 Hamming Distance 汉明距离
00476 Number Complement 数字的补数
00477 Total Hamming Distance 汉明距离总和
00762 Prime Number of Set Bits in Binary Representation 二进制表示中质数个计算置位
00898 Bitwise ORs of Subarrays 子数组按位或操作

数学

# Link 链接
00007 Reverse Integer 整数反转
00009 Palindrome Number 回文数
00013 Roman to Integer 罗马数字转整数
00029 Divide Two Integers 两数相除
00168 Excel Sheet Column Title Excel表列名称
00171 Excel Sheet Column Number Excel表列序号
00172 Factorial Trailing Zeroes 阶乘后的零
00223 Rectangle Area 矩形面积
00263 Ugly Number 丑数
00326 Power of Three 3的幂
00412 Fizz Buzz Fizz Buzz
00453 Minimum Moves to Equal Array Elements 最小移动次数使数组元素相等
00458 Poor Pigs 可怜的小猪
00462 Minimum Moves to Equal Array Elements II 最少移动次数使数组元素相等 II
00504 Base 7 七进制数
00650 2 Keys Keyboard 只有两个键的键盘
00829 Consecutive Numbers Sum 连续整数求和
00883 Projection Area of 3D Shapes 三维形体投影面积
00891 Sum of Subsequence Widths 子序列宽度之和
00892 Surface Area of 3D Shapes 三维形体的表面积
01017 Convert to Base -2 负二进制转换
01073 Adding Two Negabinary Numbers 负二进制数相加
01093 Statistics from a Large Sample 大样本统计
01103 Distribute Candies to People 分糖果 II
01154 Day of the Year 一年中的第几天

脑筋急转弯

# Link 链接
00292 Nim Game Nim游戏
00319 Bulb Switcher 灯泡开关
00777 Swap Adjacent in LR String 在LR字符串中交换相邻字符
01033 Moving Stones Until Consecutive 移动石子直到连续

算法实现

# Link 链接
00146 LRU Cache LRU缓存机制
00208 Implement Trie (Prefix Tree) 实现 Trie(前缀树)
00380 Insert Delete GetRandom O(1) 常数时间插入、删除和获取随机元素
00432 All O`one Data Structure 全 O(1) 的数据结构
00707 Design Linked List 设计链表

About

LeetCode Solution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages