Skip to content

lekeeith/LeetCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

热烈欢迎您一起填坑!→ 参与本项目图文教程

本页仅供查找4种编程语言:【Siwft】、【C++】、【Java】、【Python3】

请您↓点击↓选择刷题语言,以查找对应编程语言的Solutions。(按首字母顺序排序,不分先后)

| C | C++ | C# | Go | Java | JavaScript | Kotlin |

↓微信打赏↓ & ↓支付宝打赏↓ & ↓微信公众号↓ → 打赏榜 | 山青咏芝

Leetcode

扫码↓↓↓加入LeetCode微信群,一起LeetCode!每周日更新最新题目!!!

Leetcode

注1:每题2个解法 = 【Minimum Runtime Solution】 + 【Minimum Memory Usage Solution】

注2:Mac:【command + F】 / Windows:【Ctrl + F】 → 输入题号或题名快速定位。

逆序No. 【Swift】 && 题目【Title】 C++ Java Python3 Difficulty
1081 活字印刷 - Letter Tile Possibilities C++ Java Python3 Medium
1080 不同字符的最小子序列 - Smallest Subsequence of Distinct Characters C++ Java Python3 Medium
1079 根到叶路径上的不足节点 - Insufficient Nodes in Root to Leaf Paths C++ Java Python3 Medium
1078 Bigram 分词 - Occurrences After Bigram C++ Java Python3 Easy
1077 [Project Employees III $ 项目员工 III] C++ Java Python3 Medium
1076 [Project Employees II $ 项目员工 II] C++ Java Python3 Easy
1075 [Project Employees I $ 项目员工 I] C++ Java Python3 Easy
1074 元素和为目标值的子矩阵数量 - Number of Submatrices That Sum to Target C++ Java Python3 Hard
1073 负二进制数相加 - Adding Two Negabinary Numbers C++ Java Python3 Medium
1072 按列翻转得到最大值等行数 - Flip Columns For Maximum Number of Equal Rows C++ Java Python3 Medium
1071 字符串的最大公因子 - Greatest Common Divisor of Strings C++ Java Python3 Easy
1070 [产品销售分析III $ Product Sales Analysis III] C++ Java Python3 Medium
1069 [产品销售分析II $ Product Sales Analysis II] C++ Java Python3 Easy
1068 [产品销售分析I $ Product Sales Analysis I] C++ Java Python3 Easy
1067 范围内的数字计数 - Digit Count in Range C++ Java Python3 Hard
1066 校园自行车分配 II - Campus Bikes II C++ Java Python3 Medium
1065 字符串的索引对 - Index Pairs of a String C++ Java Python3 Easy
1064 不动点 - Fixed Point C++ Java Python3 Easy
1063 [有效子数组数 $ Number of Valid Subarrays] C++ Java Python3 Hard
1062 [最长重复子字符串 $ Longest Repeating Substring] C++ Java Python3 Medium
1061 [词典最小等价字符串 $ Lexicographically Smallest Equivalent String] C++ Java Python3 Medium
1060 [排序数组中缺少元素 $ Missing Element in Sorted Array] C++ Java Python3 Medium
1059 [从源头到目的地的所有路径 $ All Paths from Source Lead to Destination] C++ Java Python3 Hard
1058 [最小化舍入误差以达到目标 $ Minimize Rounding Error to Meet Target] C++ Java Python3 Medium
1057 [校园自行车 $ Campus Bikes] C++ Java Python3 Medium
1056 [混淆的数字 $ Confusing Number] C++ Java Python3 Easy
1055 [形成字符串的最短方法 $ Shortest Way to Form String] C++ Java Python3 Medium
1054 距离相等的条形码 - Distant Barcodes C++ Java Python3 Medium
1053 交换一次的先前排列 - Previous Permutation With One Swap C++ Java Python3 Medium
1052 爱生气的书店老板 - Grumpy Bookstore Owner C++ Java Python3 Medium
1051 高度检查器 - Height Checker C++ Java Python3 Easy
1050 合作至少三次的演员和导演 - Actors and Directors Who Cooperated At Least Three Times C++ Java Python3 Easy
1049 最后一块石头的重量 II - Last Stone Weight II C++ Java Python3 Medium
1048 最长字符串链 - Longest String Chain C++ Java Python3 Medium
1047 删除字符串中的所有相邻重复项 - Remove All Adjacent Duplicates In String C++ Java Python3 Easy
1046 最后一块石头的重量 - Last Stone Weight C++ Java Python3 Easy
1045 购买所有产品的客户 - Customers Who Bought All Products C++ Java Python3 Medium
1043 分隔数组以得到最大和 - Partition Array for Maximum Sum C++ Java Python3 Medium
1042 不邻接植花 - Flower Planting With No Adjacent C++ Java Python3 Easy
1041 困于环中的机器人 - Robot Bounded In Circle C++ Java Python3 Easy
1040 移动石子直到连续 II - Moving Stones Until Consecutive II C++ Java Python3 Medium
1039 多边形三角剖分的最低得分 - Minimum Score Triangulation of Polygon C++ Java Python3 Medium
1038 从二叉搜索树到更大和树 - Binary Search Tree to Greater Sum Tree C++ Java Python3 Medium
1037 有效的回旋镖 - Valid Boomerang C++ Java Python3 Easy
1036 逃离大迷宫 - Escape a Large Maze C++ Java Python3 Hard
1035 不相交的线 - Uncrossed Lines C++ Java Python3 Medium
1034 边框着色 - Coloring A Border C++ Java Python3 Medium
1033 移动石子直到连续 - Moving Stones Until Consecutive C++ Java Python3 Easy
1032 字符流 - Stream of Characters C++ Java Python3 Hard
1031 两个非重叠子数组的最大和 - Maximum Sum of Two Non-Overlapping Subarrays C++ Java Python3 Medium
1030 距离顺序排列矩阵单元格 - Matrix Cells in Distance Order C++ Java Python3 Easy
1029 两地调度 - Two City Scheduling C++ Java Python3 Easy
1028 从先序遍历还原二叉树 - Recover a Tree From Preorder Traversal C++ Java Python3 Hard
1027 最长等差数列 - Longest Arithmetic Sequence C++ Java Python3 Medium
1026 节点与其祖先之间的最大差值 - Maximum Difference Between Node and Ancestor C++ Java Python3 Medium
1025 除数博弈 - Divisor Game C++ Java Python3 Easy
1024 视频拼接 - Video Stitching C++ Java Python3 Medium
1023 驼峰式匹配 - Camelcase Matching C++ Java Python3 Medium
1022 从根到叶的二进制数之和 - Sum of Root To Leaf Binary Numbers C++ Java Python3 Easy
1021 删除最外层的括号 - Remove Outermost Parentheses C++ Java Python3 Easy
1020 飞地的数量 - Number of Enclaves C++ Java Python3 Medium
1019 链表中的下一个更大节点 - Next Greater Node In Linked List C++ Java Python3 Medium
1018 可被 5 整除的二进制前缀 - Binary Prefix Divisible By 5 C++ Java Python3 Easy
1017 负二进制转换 - Convert to Base -2 C++ Java Python3 Medium
1016 子串能表示从 1 到 N 数字的二进制串 - Binary String With Substrings Representing 1 To N C++ Java Python3 Medium
1015 可被 K 整除的最小整数 - Smallest Integer Divisible by K C++ Java Python3 Medium
1014 最佳观光组合 - Best Sightseeing Pair C++ Java Python3 Medium
1013 将数组分成和相等的三个部分 - Partition Array Into Three Parts With Equal Sum C++ Java Python3 Easy
1012 至少有 1 位重复的数字 - Numbers With 1 Repeated Digit C++ Java Python3 Hard
1011 在 D 天内送达包裹的能力 - Capacity To Ship Packages Within D Days C++ Java Python3 Medium
1010 总持续时间可被 60 整除的歌曲 - Pairs of Songs With Total Durations Divisible by 60 C++ Java Python3 Easy
1009 十进制整数的补码 - Complement of Base 10 Integer C++ Java Python3 Easy
1008 先序遍历构造二叉树 - Construct Binary Search Tree from Preorder Traversal C++ Java Python3 Medium
1007 行相等的最少多米诺旋转 - Minimum Domino Rotations For Equal Row C++ Java Python3 Medium
1006 笨阶乘 - Clumsy Factorial C++ Java Python3 Medium
1005 K 次取反后最大化的数组和 - Maximize Sum Of Array After K Negations C++ Java Python3 Easy
1004 最大连续1的个数 III - Max Consecutive Ones III C++ Java Python3 Medium
1003 检查替换后的词是否有效 - Check If Word Is Valid After Substitutions C++ Java Python3 Medium
1002 查找常用字符 - Find Common Characters C++ Java Python3 Easy
1001 网格照明 - Grid Illumination C++ Java Python3 Hard
1000 合并石头的最低成本 - Minimum Cost to Merge Stones C++ Java Python3 Hard
999 车的可用捕获量 - Available Captures for Rook C++ Java Python3 Easy
998 最大二叉树 II - Maximum Binary Tree II C++ Java Python3 Medium
997 找到小镇的法官 - Find the Town Judge C++ Java Python3 Easy
996 正方形数组的数目 - Number of Squareful Arrays C++ Java Python3 Hard
995 K 连续位的最小翻转次数 - Minimum Number of K Consecutive Bit Flips C++ Java Python3 Hard
994 腐烂的橘子 - Rotting Oranges C++ Java Python3 Easy
993 二叉树的堂兄弟节点 - Cousins in Binary Tree C++ Java Python3 Easy
992 K 个不同整数的子数组 - Subarrays with K Different Integers C++ Java Python3 Hard
991 坏了的计算器 - Broken Calculator C++ Java Python3 Medium
990 等式方程的可满足性 - Satisfiability of Equality Equations C++ Java Python3 Medium
989 数组形式的整数加法 - Add to Array-Form of Integer C++ Java Python3 Easy
988 从叶结点开始的最小字符串 - Smallest String Starting From Leaf C++ Java Python3 Medium
987 二叉树的垂序遍历 - Vertical Order Traversal of a Binary Tree C++ Java Python3 Medium
986 区间列表的交集 - Interval List Intersections C++ Java Python3 Medium
985 查询后的偶数和 - Sum of Even Numbers After Queries C++ Java Python3 Easy
984 不含 AAA 或 BBB 的字符串 - String Without AAA or BBB C++ Java Python3 Medium
983 最低票价 - Minimum Cost For Tickets C++ Java Python3 Medium
982 按位与为零的三元组 - Triples with Bitwise AND Equal To Zero C++ Java Python3 Hard
981 基于时间的键值存储 - Time Based Key-Value Store C++ Java Python3 Medium
980 不同路径 III - Unique Paths III C++ Java Python3 Hard
979 在二叉树中分配硬币 - Distribute Coins in Binary Tree C++ Java Python3 Medium
978 最长湍流子数组 - Longest Turbulent Subarray C++ Java Python3 Medium
977 有序数组的平方 - Squares of a Sorted Array C++ Java Python3 Easy
976 三角形的最大周长 - Largest Perimeter Triangle C++ Java Python3 Easy
975 奇偶跳 - Odd Even Jump C++ Java Python3 Hard
974 和可被 K 整除的子数组 - Subarray Sums Divisible by K C++ Java Python3 Medium
973 最接近原点的 K 个点 - K Closest Points to Origin C++ Java Python3 Medium
972 相等的有理数 - Equal Rational Numbers C++ Java Python3 Hard
971 翻转二叉树以匹配先序遍历 - Flip Binary Tree To Match Preorder Traversal C++ Java Python3 Medium
970 强整数 - Powerful Integers C++ Java Python3 Easy
969 煎饼排序 - Pancake Sorting C++ Java Python3 Medium
968 监控二叉树 - Binary Tree Cameras C++ Java Python3 Hard
967 连续差相同的数字 - Numbers With Same Consecutive Differences C++ Java Python3 Medium
966 元音拼写检查器 - Vowel Spellchecker C++ Java Python3 Medium
965 单值二叉树 - Univalued Binary Tree C++ Java Python3 Easy
964 表示数字的最少运算符 - Least Operators to Express Number C++ Java Python3 Hard
963 最小面积矩形 II - Minimum Area Rectangle II C++ Java Python3 Medium
962 最大宽度坡 - Maximum Width Ramp C++ Java Python3 Medium
961 重复 N 次的元素 - N-Repeated Element in Size 2N Array C++ Java Python3 Easy
960 删列造序 III - Delete Columns to Make Sorted III C++ Java Python3 Hard
959 由斜杠划分区域 - Regions Cut By Slashes C++ Java Python3 Medium
958 二叉树的完全性检验 - Check Completeness of a Binary Tree C++ Java Python3 Medium
957 N天后的牢房 - Prison Cells After N Days C++ Java Python3 Medium
956 最高的广告牌 - Tallest Billboard C++ Java Python3 Hard
955 删列造序 II - Delete Columns to Make Sorted II C++ Java Python3 Medium
954 二倍数对数组 - Array of Doubled Pairs C++ Java Python3 Medium
953 验证外星语词典 - Verifying an Alien Dictionary C++ Java Python3 Easy
952 按公因数计算最大组件大小 - Largest Component Size by Common Factor C++ Java Python3 Hard
951 翻转等价二叉树 - Flip Equivalent Binary Trees C++ Java Python3 Medium
950 按递增顺序显示卡牌 - Reveal Cards In Increasing Order C++ Java Python3 Medium
949 给定数字能组成的最大时间 - Largest Time for Given Digits C++ Java Python3 Easy
948 令牌放置 - Bag of Tokens C++ Java Python3 Medium
947 移除最多的同行或同列石头 - Most Stones Removed with Same Row or Column C++ Java Python3 Medium
946 验证栈序列 - Validate Stack Sequences C++ Java Python3 Medium
945 使数组唯一的最小增量 - Minimum Increment to Make Array Unique C++ Java Python3 Medium
944 删除列以使之有序 - Delete Columns to Make Sorted C++ Java Python3 Easy
943 最短超级串 - Find the Shortest Superstring C++ Java Python3 Hard
942 增减字符串匹配 - DI String Match C++ Java Python3 Easy
941 有效的山脉数组 - Valid Mountain Array C++ Java Python3 Easy
940 不同的子序列 II - Distinct Subsequences II C++ Java Python3 Hard
939 最小面积矩形 - Minimum Area Rectangle C++ Java Python3 Medium
938 二叉搜索树的范围和 - Range Sum of BST C++ Java Python3 Medium
937 重新排列日志文件 - Reorder Log Files C++ Java Python3 Easy
936 戳印序列 - Stamping The Sequence C++ Java Python3 Hard
935 骑士拨号器 - Knight Dialer C++ Java Python3 Medium
934 最短的桥 - Shortest Bridge C++ Java Python3 Medium
933 最近的请求次数 - Number of Recent Calls C++ Java Python3 Easy
932 漂亮数组 - Beautiful Array C++ Java Python3 Medium
931 下降路径最小和 - Minimum Falling Path Sum C++ Java Python3 Medium
930 和相同的二元子数组 - Binary Subarrays With Sum C++ Java Python3 Medium
929 独特的电子邮件地址 - Unique Email Addresses C++ Java Python3 Easy
928 尽量减少恶意软件的传播 II - Minimize Malware Spread II C++ Java Python3 Hard
927 三等分 - Three Equal Parts C++ Java Python3 Hard
926 将字符串翻转到单调递增 - Flip String to Monotone Increasing C++ Java Python3 Medium
925 长按键入 - Long Pressed Name C++ Java Python3 Easy
924 尽量减少恶意软件的传播 - Minimize Malware Spread C++ Java Python3 Hard
923 三数之和的多种可能 - 3Sum With Multiplicity C++ Java Python3 Medium
922 按奇偶排序数组 II - Sort Array By Parity II C++ Java Python3 Easy
921 使括号有效的最少添加 - Minimum Add to Make Parentheses Valid C++ Java Python3 Medium
920 播放列表的数量 - Number of Music Playlists C++ Java Python3 Hard
919 完全二叉树插入器 - Complete Binary Tree Inserter C++ Java Python3 Medium
918 环形子数组的最大和 - Maximum Sum Circular Subarray C++ Java Python3 Medium
917 仅仅反转字母 - Reverse Only Letters C++ Java Python3 Easy
916 单词子集 - Word Subsets C++ Java Python3 Medium
915 将分区数组分成不相交的间隔 - Partition Array into Disjoint Intervals C++ Java Python3 Medium
914 一副牌中的X - X of a Kind in a Deck of Cards C++ Java Python3 Easy
913 猫与老鼠 - Cat and Mouse C++ Java Python3 Hard
912 排序数组 - Sort an Array C++ Java Python3 Medium
911 在线选举 - Online Election C++ Java Python3 Medium
910 最小差值 II - Smallest Range II C++ Java Python3 Medium
909 蛇梯棋 - Snakes and Ladders C++ Java Python3 Medium
908 最小差值 I - Smallest Range I C++ Java Python3 Easy
907 子数组的最小值之和 - Sum of Subarray Minimums C++ Java Python3 Medium
906 超级回文数 - Super Palindromes C++ Java Python3 Hard
905 按奇偶排序数组 - Sort Array By Parity C++ Java Python3 Easy
904 水果成篮 - Fruit Into Baskets C++ Java Python3 Medium
903 DI 序列的有效排列 - Valid Permutations for DI Sequence C++ Java Python3 Hard
902 最大为 N 的数字组合 - Numbers At Most N Given Digit Set C++ Java Python3 Hard
901 股票价格跨度 - Online Stock Span C++ Java Python3 Medium
900 RLE 迭代器 - RLE Iterator C++ Java Python3 Medium
899 有序队列 - Orderly Queue C++ Java Python3 Hard
898 子数组按位或操作 - Bitwise ORs of Subarrays C++ Java Python3 Medium
897 递增顺序查找树 - Increasing Order Search Tree C++ Java Python3 Easy
896 单调数列 - Monotonic Array C++ Java Python3 Easy
895 最大频率栈 - Maximum Frequency Stack C++ Java Python3 Hard
894 所有可能的满二叉树 - All Possible Full Binary Trees C++ Java Python3 Medium
893 特殊等价字符串组 - Groups of Special-Equivalent Strings C++ Java Python3 Easy
892 三维形体的表面积 - Surface Area of 3D Shapes C++ Java Python3 Easy
891 子序列宽度之和 - Sum of Subsequence Widths C++ Java Python3 Hard
890 查找和替换模式 - Find and Replace Pattern C++ Java Python3 Medium
889 根据前序和后序遍历构造二叉树 - Construct Binary Tree from Preorder and Postorder Traversal C++ Java Python3 Medium
888 公平的糖果交换 - Fair Candy Swap C++ Java Python3 Easy
887 鸡蛋掉落 - Super Egg Drop C++ Java Python3 Hard
886 可能的二分法 - Possible Bipartition C++ Java Python3 Medium
885 螺旋矩阵 III - Spiral Matrix III C++ Java Python3 Medium
884 两句话中的不常见单词 - Uncommon Words from Two Sentences C++ Java Python3 Easy
883 三维形体投影面积 - Projection Area of 3D Shapes C++ Java Python3 Easy
882 细分图中的可到达结点 - Reachable Nodes In Subdivided Graph C++ Java Python3 Hard
881 救生艇 - Boats to Save People C++ Java Python3 Medium
880 索引处的解码字符串 - Decoded String at Index C++ Java Python3 Medium
879 盈利计划 - Profitable Schemes C++ Java Python3 Hard
878 第 N 个神奇数字 - Nth Magical Number C++ Java Python3 Hard
877 石子游戏 - Stone Game C++ Java Python3 Medium
876 链表的中间结点 - Middle of the Linked List C++ Java Python3 Easy
875 爱吃香蕉的珂珂 - Koko Eating Bananas C++ Java Python3 Medium
874 模拟行走机器人 - Walking Robot Simulation C++ Java Python3 Easy
873 最长的斐波那契子序列的长度 - Length of Longest Fibonacci Subsequence C++ Java Python3 Medium
872 叶子相似的树 - Leaf-Similar Trees C++ Java Python3 Easy
871 最低加油次数 - Minimum Number of Refueling Stops C++ Java Python3 Hard
870 优势洗牌 - Advantage Shuffle C++ Java Python3 Medium
869 重新排序得到 2 的幂 - Reordered Power of 2 C++ Java Python3 Medium
868 二进制间距 - Binary Gap C++ Java Python3 Easy
867 转置矩阵 - Transpose Matrix C++ Java Python3 Easy
866 回文素数 - Prime Palindrome C++ Java Python3 Medium
865 具有所有最深结点的最小子树 - Smallest Subtree with all the Deepest Nodes C++ Java Python3 Medium
864 获取所有钥匙的最短路径 - Shortest Path to Get All Keys C++ Java Python3 Hard
863 二叉树中所有距离为 K 的结点 - All Nodes Distance K in Binary Tree C++ Java Python3 Medium
862 和至少为 K 的最短子数组 - Shortest Subarray with Sum at Least K C++ Java Python3 Hard
861 翻转矩阵后的得分 - Score After Flipping Matrix C++ Java Python3 Medium
860 柠檬水找零 - Lemonade Change C++ Java Python3 Easy
859 亲密字符串 - Buddy Strings C++ Java Python3 Easy
858 镜面反射 - Mirror Reflection C++ Java Python3 Medium
857 雇佣 K 名工人的最低成本 - Minimum Cost to Hire K Workers C++ Java Python3 Hard
856 括号的分数 - Score of Parentheses C++ Java Python3 Medium
855 考场就座 - Exam Room C++ Java Python3 Medium
854 相似度为 K 的字符串 - K-Similar Strings C++ Java Python3 Hard
853 车队 - Car Fleet C++ Java Python3 Medium
852 山脉数组的峰顶索引 - Peak Index in a Mountain Array C++ Java Python3 Easy
851 喧闹和富有 - Loud and Rich C++ Java Python3 Medium
850 矩形面积 II - Rectangle Area II C++ Java Python3 Hard
849 到最近的人的最大距离 - Maximize Distance to Closest Person C++ Java Python3 Easy
848 字母移位 - Shifting Letters C++ Java Python3 Medium
847 访问所有节点的最短路径 - Shortest Path Visiting All Nodes C++ Java Python3 Hard
846 一手顺子 - Hand of Straights C++ Java Python3 Medium
845 数组中的最长山脉 - Longest Mountain in Array C++ Java Python3 Medium
844 比较含退格的字符串 - Backspace String Compare C++ Java Python3 Easy
843 猜猜这个单词 - Guess the Word C++ Java Python3 Hard
842 将数组拆分成斐波那契序列 - Split Array into Fibonacci Sequence C++ Java Python3 Medium
841 钥匙和房间 - Keys and Rooms C++ Java Python3 Medium
840  矩阵中的幻方 - Magic Squares In Grid C++ Java Python3 Easy
839 相似字符串组 - Similar String Groups C++ Java Python3 Hard
838 推多米诺 - Push Dominoes C++ Java Python3 Medium
837 新21点 - New 21 Game C++ Java Python3 Medium
836 矩形重叠 - Rectangle Overlap C++ Java Python3 Easy
835 图像重叠 - Image Overlap C++ Java Python3 Medium
834 树中距离之和 - Sum of Distances in Tree C++ Java Python3 Hard
833 字符串中的查找与替换 - Find And Replace in String C++ Java Python3 Medium
832 翻转图像 - Flipping an Image C++ Java Python3 Easy
831 隐藏个人信息 - Masking Personal Information C++ Java Python3 Medium
830 较大分组的位置 - Positions of Large Groups C++ Java Python3 Easy
829 连续整数求和 - Consecutive Numbers Sum C++ Java Python3 Hard
828 独特字符串 - Unique Letter String C++ Java Python3 Hard
827 最大人工岛 - Making A Large Island C++ Java Python3 Hard
826 安排工作以达到最大收益 - Most Profit Assigning Work C++ Java Python3 Medium
825 适龄的朋友 - Friends Of Appropriate Ages C++ Java Python3 Medium
824 山羊拉丁文 - Goat Latin C++ Java Python3 Easy
823 带因子的二叉树 - Binary Trees With Factors C++ Java Python3 Medium
822 翻转卡片游戏 - Card Flipping Game C++ Java Python3 Medium
821 字符的最短距离 - Shortest Distance to a Character C++ Java Python3 Easy
820 单词的压缩编码 - Short Encoding of Words C++ Java Python3 Medium
819 最常见的单词 - Most Common Word C++ Java Python3 Easy
818 赛车 - Race Car C++ Java Python3 Hard
817 链表组件 - Linked List Components C++ Java Python3 Medium
816 模糊坐标 - Ambiguous Coordinates C++ Java Python3 Medium
815 公交路线 - Bus Routes C++ Java Python3 Hard
814 二叉树剪枝 - Binary Tree Pruning C++ Java Python3 Medium
813 最大平均值和的分组 - Largest Sum of Averages C++ Java Python3 Medium
812 最大三角形面积 - Largest Triangle Area C++ Java Python3 Easy
811 子域名访问计数 - Subdomain Visit Count C++ Java Python3 Easy
810 黑板异或游戏 - Chalkboard XOR Game C++ Java Python3 Hard
809 情感丰富的文字 - Expressive Words C++ Java Python3 Medium
808 分汤 - Soup Servings C++ Java Python3 Medium
807 保持城市天际线 - Max Increase to Keep City Skyline C++ Java Python3 Medium
806 写字符串需要的行数 - Number of Lines To Write String C++ Java Python3 Easy
805 数组的均值分割 - Split Array With Same Average C++ Java Python3 Hard
804 唯一摩尔斯密码词 - Unique Morse Code Words C++ Java Python3 Easy
803 打砖块 - Bricks Falling When Hit C++ Java Python3 Hard
802 找到最终的安全状态 - Find Eventual Safe States C++ Java Python3 Medium
801 使序列递增的最小交换次数 - Minimum Swaps To Make Sequences Increasing C++ Java Python3 Medium
800 C++ Java Python3 Easy
799 香槟塔 - Champagne Tower C++ Java Python3 Medium
798 得分最高的最小轮调 - Smallest Rotation with Highest Score C++ Java Python3 Hard
797 所有可能的路径 - All Paths From Source to Target C++ Java Python3 Medium
796 旋转字符串 - Rotate String C++ Java Python3 Easy
795 区间子数组个数 - Number of Subarrays with Bounded Maximum C++ Java Python3 Medium
794 有效的井字游戏 - Valid Tic-Tac-Toe State C++ Java Python3 Medium
793 阶乘函数后K个零 - Preimage Size of Factorial Zeroes Function C++ Java Python3 Hard
792 匹配子序列的单词数 - Number of Matching Subsequences C++ Java Python3 Medium
791 自定义字符串排序 - Custom Sort String C++ Java Python3 Medium
790 多米诺和托米诺平铺 - Domino and Tromino Tiling C++ Java Python3 Medium
789 逃脱阻碍者 - Escape The Ghosts C++ Java Python3 Medium
788 旋转数字 - Rotated Digits C++ Java Python3 Easy
787 K 站中转内最便宜的航班 - Cheapest Flights Within K Stops C++ Java Python3 Medium
786 第 K 个最小的素数分数 - K-th Smallest Prime Fraction C++ Java Python3 Hard
785 判断二分图 - Is Graph Bipartite? C++ Java Python3 Medium
784 字母大小写全排列 - Letter Case Permutation C++ Java Python3 Easy
783 二叉搜索树结点最小距离 - Minimum Distance Between BST Nodes C++ Java Python3 Easy
782 变为棋盘 - Transform to Chessboard C++ Java Python3 Hard
781 森林中的兔子 - Rabbits in Forest C++ Java Python3 Medium
780 到达终点 - Reaching Points C++ Java Python3 Hard
779 第K个语法符号 - K-th Symbol in Grammar C++ Java Python3 Medium
778 水位上升的泳池中游泳 - Swim in Rising Water C++ Java Python3 Hard
777 在LR字符串中交换相邻字符 - Swap Adjacent in LR String C++ Java Python3 Medium
776 C++ Java Python3 Medium
775 全局倒置与局部倒置 - Global and Local Inversions C++ Java Python3 Medium
774 C++ Java Python3 Hard
773 滑动谜题 - Sliding Puzzle C++ Java Python3 Hard
772 C++ Java Python3 Hard
771 宝石与石头 - Jewels and Stones C++ Java Python3 Easy
770 基本计算器 IV - Basic Calculator IV C++ Java Python3 Hard
769 最多能完成排序的块 - Max Chunks To Make Sorted C++ Java Python3 Medium
768 最多能完成排序的块 II - Max Chunks To Make Sorted II C++ Java Python3 Hard
767 重构字符串 - Reorganize String C++ Java Python3 Medium
766 托普利茨矩阵 - Toeplitz Matrix C++ Java Python3 Easy
765 情侣牵手 - Couples Holding Hands C++ Java Python3 Hard
764 最大加号标志 - Largest Plus Sign C++ Java Python3 Medium
763 划分字母区间 - Partition Labels C++ Java Python3 Medium
762 二进制表示中质数个计算置位 - Prime Number of Set Bits in Binary Representation C++ Java Python3 Easy
761 特殊的二进制序列 - Special Binary String C++ Java Python3 Hard
760 C++ Java Python3 Easy
759 C++ Java Python3 Hard
758 C++ Java Python3 Easy
757 设置交集大小至少为2 - Set Intersection Size At Least Two C++ Java Python3 Hard
756 金字塔转换矩阵 - Pyramid Transition Matrix C++ Java Python3 Medium
755 C++ Java Python3 Medium
754 到达终点数字 - Reach a Number C++ Java Python3 Easy
753 破解保险箱 - Cracking the Safe C++ Java Python3 Hard
752 打开转盘锁 - Open the Lock C++ Java Python3 Medium
751 C++ Java Python3 Easy
750 C++ Java Python3 Medium
749 隔离病毒 - Contain Virus C++ Java Python3 Hard
748 最短完整词 - Shortest Completing Word C++ Java Python3 Easy
747 至少是其他数字两倍的最大数 - Largest Number At Least Twice of Others C++ Java Python3 Easy
746 使用最小花费爬楼梯 - Min Cost Climbing Stairs C++ Java Python3 Easy
745 前缀和后缀搜索 - Prefix and Suffix Search C++ Java Python3 Hard
744 寻找比目标字母大的最小字母 - Find Smallest Letter Greater Than Target C++ Java Python3 Easy
743 网络延迟时间 - Network Delay Time C++ Java Python3 Medium
742 C++ Java Python3 Medium
741 摘樱桃 - Cherry Pickup C++ Java Python3 Hard
740 删除与获得点数 - Delete and Earn C++ Java Python3 Medium
739 每日温度 - Daily Temperatures C++ Java Python3 Medium
738 单调递增的数字 - Monotone Increasing Digits C++ Java Python3 Medium
737 C++ Java Python3 Medium
736 Lisp 语法解析 - Parse Lisp Expression C++ Java Python3 Medium
735 行星碰撞 - Asteroid Collision C++ Java Python3 Medium
734 C++ Java Python3 Easy
733 图像渲染 - Flood Fill C++ Java Python3 Easy
732 我的日程安排表 III - My Calendar III C++ Java Python3 Hard
731 我的日程安排表 II - My Calendar II C++ Java Python3 Medium
730 统计不同回文子字符串 - Count Different Palindromic Subsequences C++ Java Python3 Hard
729 我的日程安排表 I - My Calendar I C++ Java Python3 Medium
728 自除数 - Self Dividing Numbers C++ Java Python3 Easy
727 C++ Java Python3 Hard
726 原子的数量 - Number of Atoms C++ Java Python3 Hard
725 分隔链表 - Split Linked List in Parts C++ Java Python3 Medium
724 寻找数组的中心索引 - Find Pivot Index C++ Java Python3 Easy
723 C++ Java Python3 Medium
722 删除注释 - Remove Comments C++ Java Python3 Medium
721 账户合并 - Accounts Merge C++ Java Python3 Medium
720 词典中最长的单词 - Longest Word in Dictionary C++ Java Python3 Easy
719 找出第 k 小的距离对 - Find K-th Smallest Pair Distance C++ Java Python3 Hard
718 最长重复子数组 - Maximum Length of Repeated Subarray C++ Java Python3 Medium
717 1比特与2比特字符 - 1-bit and 2-bit Characters C++ Java Python3 Easy
716 C++ Java Python3 Easy
715 Range 模块 - Range Module C++ Java Python3 Hard
714 买卖股票的最佳时机含手续费 - Best Time to Buy and Sell Stock with Transaction Fee C++ Java Python3 Medium
713 乘积小于K的子数组 - Subarray Product Less Than K C++ Java Python3 Medium
712 两个字符串的最小ASCII删除和 - Minimum ASCII Delete Sum for Two Strings C++ Java Python3 Medium
711 C++ Java Python3 Hard
710 黑名单中的随机数 - Random Pick with Blacklist C++ Java Python3 Hard
709 转换成小写字母 - To Lower Case C++ Java Python3 Easy
708 C++ Java Python3 Medium
707 设计链表 - Design Linked List C++ Java Python3 Easy
706 设计哈希映射 - Design HashMap C++ Java Python3 Easy
705 设计哈希集合 - Design HashSet C++ Java Python3 Easy
704 二分查找 - Binary Search C++ Java Python3 Easy
703 数据流中的第K大元素 - Kth Largest Element in a Stream C++ Java Python3 Easy
702 C++ Java Python3 Medium
701 二叉搜索树中的插入操作 - Insert into a Binary Search Tree C++ Java Python3 Medium
700 二叉搜索树中的搜索 - Search in a Binary Search Tree C++ Java Python3 Easy
699 掉落的方块 - Falling Squares C++ Java Python3 Hard
698 划分为k个相等的子集 - Partition to K Equal Sum Subsets C++ Java Python3 Medium
697 数组的度 - Degree of an Array C++ Java Python3 Easy
696 计数二进制子串 - Count Binary Substrings C++ Java Python3 Easy
695 岛屿的最大面积 - Max Area of Island C++ Java Python3 Medium
694 C++ Java Python3 Medium
693 交替位二进制数 - Binary Number with Alternating Bits C++ Java Python3 Easy
692 前K个高频单词 - Top K Frequent Words C++ Java Python3 Medium
691 贴纸拼词 - Stickers to Spell Word C++ Java Python3 Hard
690 员工的重要性 - Employee Importance C++ Java Python3 Easy
689 三个无重叠子数组的最大和 - Maximum Sum of 3 Non-Overlapping Subarrays C++ Java Python3 Hard
688 “马”在棋盘上的概率 - Knight Probability in Chessboard C++ Java Python3 Medium
687 最长同值路径 - Longest Univalue Path C++ Java Python3 Easy
686 重复叠加字符串匹配 - Repeated String Match C++ Java Python3 Easy
685 冗余连接 II - Redundant Connection II C++ Java Python3 Hard
684 冗余连接 - Redundant Connection C++ Java Python3 Medium
683 C++ Java Python3 Hard
682 棒球比赛 - Baseball Game C++ Java Python3 Easy
681 C++ Java Python3 Medium
680 验证回文字符串 Ⅱ - Valid Palindrome II C++ Java Python3 Easy
679 24点游戏 - 24 Game C++ Java Python3 Medium
678 有效的括号字符串 - Valid Parenthesis String C++ Java Python3 Medium
677 键值映射 - Map Sum Pairs C++ Java Python3 Medium
676 实现一个魔法字典 - Implement Magic Dictionary C++ Java Python3 Medium
675 为高尔夫比赛砍树 - Cut Off Trees for Golf Event C++ Java Python3 Hard
674 最长连续递增序列 - Longest Continuous Increasing Subsequence C++ Java Python3 Easy
673 最长递增子序列的个数 - Number of Longest Increasing Subsequence C++ Java Python3 Medium
672 灯泡开关 Ⅱ - Bulb Switcher II C++ Java Python3 Medium
671 二叉树中第二小的节点 - Second Minimum Node In a Binary Tree C++ Java Python3 Easy
670 最大交换 - Maximum Swap C++ Java Python3 Medium
669 修剪二叉搜索树 - Trim a Binary Search Tree C++ Java Python3 Easy
668 乘法表中第k小的数 - Kth Smallest Number in Multiplication Table C++ Java Python3 Hard
667 优美的排列 II - Beautiful Arrangement II C++ Java Python3 Medium
666 C++ Java Python3 Medium
665 非递减数列 - Non-decreasing Array C++ Java Python3 Medium
664 奇怪的打印机 - Strange Printer C++ Java Python3 Medium
663 C++ Java Python3 Medium
662 二叉树最大宽度 - Maximum Width of Binary Tree C++ Java Python3 Medium
661 图片平滑器 - Image Smoother C++ Java Python3 Easy
660 C++ Java Python3 Hard
659 分割数组为连续子序列 - Split Array into Consecutive Subsequences C++ Java Python3 Medium
658 找到 K 个最接近的元素 - Find K Closest Elements C++ Java Python3 Medium
657 机器人能否返回原点 - Robot Return to Origin C++ Java Python3 Easy
656 C++ Java Python3 Hard
655 输出二叉树 - Print Binary Tree C++ Java Python3 Medium
654 最大二叉树 - Maximum Binary Tree C++ Java Python3 Medium
653 两数之和 IV - 输入 BST - Two Sum IV - Input is a BST C++ Java Python3 Easy
652 寻找重复的子树 - Find Duplicate Subtrees C++ Java Python3 Medium
651 C++ Java Python3 Medium
650 只有两个键的键盘 - 2 Keys Keyboard C++ Java Python3 Medium
649 Dota2 参议院 - Dota2 Senate C++ Java Python3 Medium
648 单词替换 - Replace Words C++ Java Python3 Medium
647 回文子串 - Palindromic Substrings C++ Java Python3 Medium
646 最长数对链 - Maximum Length of Pair Chain C++ Java Python3 Medium
645 错误的集合 - Set Mismatch C++ Java Python3 Easy
644 C++ Java Python3 Hard
643 子数组最大平均数 I - Maximum Average Subarray I C++ Java Python3 Easy
642 C++ Java Python3 Hard
641 设计循环双端队列 - Design Circular Deque C++ Java Python3 Medium
640 求解方程 - Solve the Equation C++ Java Python3 Medium
639 解码方法 2 - Decode Ways II C++ Java Python3 Hard
638 大礼包 - Shopping Offers C++ Java Python3 Medium
637 二叉树的层平均值 - Average of Levels in Binary Tree C++ Java Python3 Easy
636 函数的独占时间 - Exclusive Time of Functions C++ Java Python3 Medium
635 C++ Java Python3 Medium
634 C++ Java Python3 Medium
633 平方数之和 - Sum of Square Numbers C++ Java Python3 Easy
632 最小区间 - Smallest Range C++ Java Python3 Hard
631 C++ Java Python3 Hard
630 课程表 III - Course Schedule III C++ Java Python3 Hard
629 K个逆序对数组 - K Inverse Pairs Array C++ Java Python3 Hard
628 三个数的最大乘积 - Maximum Product of Three Numbers C++ Java Python3 Easy
627 交换工资 - Swap Salary C++ Java Python3 Easy
626 换座位 - Exchange Seats C++ Java Python3 Medium
625 C++ Java Python3 Medium
624 C++ Java Python3 Easy
623 在二叉树中增加一行 - Add One Row to Tree C++ Java Python3 Medium
622 设计循环队列 - Design Circular Queue C++ Java Python3 Medium
621 任务调度器 - Task Scheduler C++ Java Python3 Medium
620 有趣的电影 - Not Boring Movies C++ Java Python3 Easy
619 C++ Java Python3 Easy
618 C++ Java Python3 Hard
617 合并二叉树 - Merge Two Binary Trees C++ Java Python3 Easy
616 C++ Java Python3 Medium
615 C++ Java Python3 Hard
614 C++ Java Python3 Medium
613 C++ Java Python3 Easy
612 C++ Java Python3 Medium
611 有效三角形的个数 - Valid Triangle Number C++ Java Python3 Medium
610 C++ Java Python3 Easy
609 在系统中查找重复文件 - Find Duplicate File in System C++ Java Python3 Medium
608 C++ Java Python3 Medium
607 C++ Java Python3 Easy
606 根据二叉树创建字符串 - Construct String from Binary Tree C++ Java Python3 Easy
605 种花问题 - Can Place Flowers C++ Java Python3 Easy
604 C++ Java Python3 Easy
603 C++ Java Python3 Easy
602 C++ Java Python3 Medium
601 体育馆的人流量 - Human Traffic of Stadium C++ Java Python3 Hard
600 不含连续1的非负整数 - Non-negative Integers without Consecutive Ones C++ Java Python3 Hard
599 两个列表的最小索引总和 - Minimum Index Sum of Two Lists C++ Java Python3 Easy
598 范围求和 II - Range Addition II C++ Java Python3 Easy
597 C++ Java Python3 Easy
596 超过5名学生的课 - Classes More Than 5 Students C++ Java Python3 Easy
595 大的国家 - Big Countries C++ Java Python3 Easy
594 最长和谐子序列 - Longest Harmonious Subsequence C++ Java Python3 Easy
593 有效的正方形 - Valid Square C++ Java Python3 Medium
592 分数加减运算 - Fraction Addition and Subtraction C++ Java Python3 Medium
591 标签验证器 - Tag Validator C++ Java Python3 Hard
590 C++ Java Python3 Easy
589 C++ Java Python3 Easy
588 C++ Java Python3 Hard
587 安装栅栏 - Erect the Fence C++ Java Python3 Hard
586 C++ Java Python3 Easy
585 C++ Java Python3 Medium
584 C++ Java Python3 Easy
583 两个字符串的删除操作 - Delete Operation for Two Strings C++ Java Python3 Medium
582 C++ Java Python3 Medium
581 最短无序连续子数组 - Shortest Unsorted Continuous Subarray  C++ Java Python3 Easy
580 C++ Java Python3 Medium
579 C++ Java Python3 Hard
578 C++ Java Python3 Medium
577 员工奖金 - Employee Bonus C++ Java Python3 Easy
576 出界的路径数 - Out of Boundary Paths C++ Java Python3 Medium
575 分糖果 - Distribute Candies C++ Java Python3 Easy
574 C++ Java Python3 Medium
573 C++ Java Python3 Medium
572 另一个树的子树 - Subtree of Another Tree C++ Java Python3 Easy
571 C++ Java Python3 Hard
570 C++ Java Python3 Medium
569 C++ Java Python3 Hard
568 C++ Java Python3 Hard
567 字符串的排列 - Permutation in String C++ Java Python3 Medium
566 重塑矩阵 - Reshape the Matrix C++ Java Python3 Easy
565 数组嵌套 - Array Nesting C++ Java Python3 Medium
564 寻找最近的回文数 - Find the Closest Palindrome C++ Java Python3 Hard
563 二叉树的坡度 - Binary Tree Tilt C++ Java Python3 Easy
562 C++ Java Python3 Medium
561 数组拆分 I - Array Partition I C++ Java Python3 Easy
560 和为K的子数组 - Subarray Sum Equals K C++ Java Python3 Medium
559 C++ Java Python3 Easy
558 C++ Java Python3 Easy
557 反转字符串中的单词 III - Reverse Words in a String III C++ Java Python3 Easy
556 下一个更大元素 III - Next Greater Element III C++ Java Python3 Medium
555 C++ Java Python3 Medium
554 砖墙 - Brick Wall C++ Java Python3 Medium
553 最优除法 - Optimal Division C++ Java Python3 Medium
552 学生出勤记录 II - Student Attendance Record II C++ Java Python3 Hard
551 学生出勤纪录 I - Student Attendance Record I C++ Java Python3 Easy
550 C++ Java Python3 Medium
549 C++ Java Python3 Medium
548 C++ Java Python3 Medium
547 朋友圈 - Friend Circles C++ Java Python3 Medium
546 移除盒子 - Remove Boxes C++ Java Python3 Hard
545 C++ Java Python3 Medium
544 C++ Java Python3 Medium
543 二叉树的直径 - Diameter of Binary Tree C++ Java Python3 Easy
542 01 矩阵 - 01 Matrix C++ Java Python3 Medium
541 反转字符串 II - Reverse String II C++ Java Python3 Easy
540 有序数组中的单一元素 - Single Element in a Sorted Array C++ Java Python3 Medium
539 最小时间差 - Minimum Time Difference C++ Java Python3 Medium
538 把二叉搜索树转换为累加树 - Convert BST to Greater Tree C++ Java Python3 Easy
537 复数乘法 - Complex Number Multiplication C++ Java Python3 Medium
536 C++ Java Python3 Medium
535 C++ Java Python3 Medium
534 C++ Java Python3 Medium
533 C++ Java Python3 Medium
532 数组中的K-diff数对 - K-diff Pairs in an Array C++ Java Python3 Easy
531 C++ Java Python3 Medium
530 二叉搜索树的最小绝对差 - Minimum Absolute Difference in BST C++ Java Python3 Easy
529 扫雷游戏 - Minesweeper C++ Java Python3 Medium
528 按权重随机选择 - Random Pick with Weight C++ Java Python3 Medium
527 C++ Java Python3 Hard
526 优美的排列 - Beautiful Arrangement C++ Java Python3 Medium
525 连续数组 - Contiguous Array C++ Java Python3 Medium
524 通过删除字母匹配到字典里最长单词 - Longest Word in Dictionary through Deleting C++ Java Python3 Medium
523 连续的子数组和 - Continuous Subarray Sum C++ Java Python3 Medium
522 最长特殊序列 II - Longest Uncommon Subsequence II C++ Java Python3 Medium
521 最长特殊序列 Ⅰ - Longest Uncommon Subsequence I C++ Java Python3 Easy
520 检测大写字母 - Detect Capital C++ Java Python3 Easy
519 随机翻转矩阵 - Random Flip Matrix C++ Java Python3 Medium
518 零钱兑换 II - Coin Change 2 C++ Java Python3 Medium
517 超级洗衣机 - Super Washing Machines C++ Java Python3 Hard
516 最长回文子序列 - Longest Palindromic  C++ Java Python3 Medium
515 在每个树行中找最大值 - Find Largest Value in Each Tree Row C++ Java Python3 Medium
514 自由之路 - Freedom Trail C++ Java Python3 Hard
513 找树左下角的值 - Find Bottom Left Tree Value C++ Java Python3 Medium
512 C++ Java Python3 Medium
511 C++ Java Python3 Medium
510 C++ Java Python3 Medium
509 斐波那契数 - Fibonacci Number C++ Java Python3 Easy
508 出现次数最多的子树元素和 - Most Frequent Subtree Sum C++ Java Python3 Medium
507 完美数 - Perfect Number C++ Java Python3 Easy
506 相对名次 - Relative Ranks C++ Java Python3 Easy
505 C++ Java Python3 Medium
504 七进制数 - Base 7 C++ Java Python3 Easy
503 下一个更大元素 II - Next Greater Element II C++ Java Python3 Medium
502 IPO(首次公开募股) - Initial Public Offerings C++ Java Python3 Hard
501 二叉搜索树中的众数 - Find Mode in Binary Search Tree C++ Java Python3 Easy
500 键盘行 - Keyboard Row C++ Java Python3 Easy
499 C++ Java Python3 Hard
498 对角线遍历 - Diagonal Traverse C++ Java Python3 Medium
497 非重叠矩形中的随机点 - Random Point in Non-overlapping Rectangles C++ Java Python3 Medium
496 下一个更大元素 I - Next Greater Element I C++ Java Python3 Easy
495 提莫攻击 - Teemo Attacking C++ Java Python3 Medium
494 目标和 - Target Sum C++ Java Python3 Medium
493 翻转对 - Reverse Pairs C++ Java Python3 Hard
492 构造矩形 - Construct the Rectangle C++ Java Python3 Easy
491 递增子序列 - Increasing Subsequences C++ Java Python3 Medium
490 C++ Java Python3 Medium
489 C++ Java Python3 Hard
488 祖玛游戏 - Zuma Game C++ Java Python3 Hard
487 C++ Java Python3 Medium
486 预测赢家 - Predict the Winner C++ Java Python3 Medium
485 最大连续1的个数 - Max Consecutive Ones C++ Java Python3 Easy
484 C++ Java Python3 Medium
483 最小好进制 - Smallest Good Base C++ Java Python3 Hard
482 密钥格式化 - License Key Formatting C++ Java Python3 Easy
481 神奇字符串 - Magical String C++ Java Python3 Medium
480 滑动窗口中位数 - Sliding Window Median C++ Java Python3 Hard
479 最大回文数乘积 - Largest Palindrome Product C++ Java Python3 Hard
478 在圆内随机生成点 - Generate Random Point in a Circle C++ Java Python3 Medium
477 汉明距离总和 - Total Hamming Distance C++ Java Python3 Medium
476 数字的补数 - Number Complement C++ Java Python3 Easy
475 供暖器 - Heaters C++ Java Python3 Easy
474 一和零 - Ones and Zeroes C++ Java Python3 Medium
473 火柴拼正方形 - Matchsticks to Square C++ Java Python3 Medium
472 连接词 - Concatenated Words C++ Java Python3 Hard
471 C++ Java Python3 Hard
470 用 Rand7() 实现 Rand10() - Implement Rand10() Using Rand7() C++ Java Python3 Medium
469 C++ Java Python3 Medium
468 验证IP地址 - Validate IP Address C++ Java Python3 Medium
467 环绕字符串中唯一的子字符串 - Unique Substrings in Wraparound String C++ Java Python3 Medium
466 统计重复个数 - Count The Repetitions C++ Java Python3 Hard
465 C++ Java Python3 Hard
464 我能赢吗 - Can I Win C++ Java Python3 Medium
463 岛屿的周长 - Island Perimeter C++ Java Python3 Easy
462 最少移动次数使数组元素相等 II - Minimum Moves to Equal Array Elements II C++ Java Python3 Medium
461 汉明距离 - Hamming Distance C++ Java Python3 Easy
460 LFU缓存 - LFU Cache C++ Java Python3 Hard
459 重复的子字符串 - Repeated Substring Pattern C++ Java Python3 Easy
458 可怜的小猪 - Poor Pigs C++ Java Python3 Hard
457 环形数组循环 - Circular Array Loop C++ Java Python3 Medium
456 132模式 - 132 Pattern C++ Java Python3 Medium
455 分发饼干 - Assign Cookies C++ Java Python3 Easy
454 四数相加 II - 4Sum II C++ Java Python3 Medium
453 最小移动次数使数组元素相等 - Minimum Moves to Equal Array Elements C++ Java Python3 Easy
452 用最少数量的箭引爆气球 - Minimum Number of Arrows to Burst Balloons C++ Java Python3 Medium
451 根据字符出现频率排序 - Sort Characters By Frequency C++ Java Python3 Medium
450 删除二叉搜索树中的节点 - Delete Node in a BST C++ Java Python3 Medium
449 C++ Java Python3 Medium
448 找到所有数组中消失的数字 - Find All Numbers Disappeared in an Array C++ Java Python3 Easy
447 回旋镖的数量 - Number of Boomerangs C++ Java Python3 Easy
446 等差数列划分 II - 子序列 - Arithmetic Slices II - Subsequence C++ Java Python3 Hard
445 两数相加 II - Add Two Numbers II C++ Java Python3 Medium
444 C++ Java Python3 Medium
443 压缩字符串 - String Compression C++ Java Python3 Easy
442 数组中重复的数据 - Find All Duplicates in an Array C++ Java Python3 Medium
441 排列硬币 - Arranging Coins C++ Java Python3 Easy
440 字典序的第K小数字 - K-th Smallest in Lexicographical Order C++ Java Python3 Hard
439 C++ Java Python3 Medium
438 找到字符串中所有字母异位词 - Find All Anagrams in a String C++ Java Python3 Easy
437 路径总和 III - Path Sum III C++ Java Python3 Easy
436 寻找右区间 - Find Right Interval C++ Java Python3 Medium
435 无重叠区间 - Non-overlapping Intervals C++ Java Python3 Medium
434 字符串中的单词数 - Number of Segments in a String C++ Java Python3 Easy
433 最小基因变化 - Minimum Genetic Mutation C++ Java Python3 Medium
432 全O(1) 的数据结构 - All O`one Data Structure C++ Java Python3 Hard
431 C++ Java Python3 Hard
430 C++ Java Python3 Medium
429 C++ Java Python3 Easy
428 C++ Java Python3 Hard
427 C++ Java Python3 Easy
426 C++ Java Python3 Medium
425 C++ Java Python3 Hard
424 替换后的最长重复字符 - Longest Repeating Character Replacement C++ Java Python3 Medium
423 从英文中重建数字 - Reconstruct Original Digits from English C++ Java Python3 Medium
422 C++ Java Python3 Easy
421 数组中两个数的最大异或值 - Maximum XOR of Two Numbers in an Array C++ Java Python3 Medium
420 强密码检验器 - Strong Password Checker C++ Java Python3 Hard
419 甲板上的战舰 - Battleships in a Board C++ Java Python3 Medium
418 C++ Java Python3 Medium
417 太平洋大西洋水流问题 - Pacific Atlantic Water Flow C++ Java Python3 Medium
416 分割等和子集 - Partition Equal Subset Sum C++ Java Python3 Medium
415 字符串相加 - Add Strings C++ Java Python3 Easy
414 第三大的数 - Third Maximum Number C++ Java Python3 Easy
413 等差数列划分 - Arithmetic Slices C++ Java Python3 Medium
412  Fizz Buzz C++ Java Python3 Easy
411 C++ Java Python3 Hard
410 分割数组的最大值 - Split Array Largest Sum C++ Java Python3 Hard
409 最长回文串 - Longest Palindrome C++ Java Python3 Easy
408 C++ Java Python3 Easy
407 接雨水 II - Trapping Rain Water II C++ Java Python3 Hard
406 根据身高重建队列 - Queue Reconstruction by Height C++ Java Python3 Medium
405 数字转换为十六进制数 - Convert a Number to Hexadecimal C++ Java Python3 Easy
404 左叶子之和 - Sum of Left Leaves C++ Java Python3 Easy
403 青蛙过河 - Frog Jump C++ Java Python3 Hard
402 移掉K位数字 - Remove K Digits C++ Java Python3 Medium
401 二进制手表 - Binary Watch C++ Java Python3 Easy
400 第N个数字 - Nth Digit  C++ Java Python3 Easy
399 除法求值 - Evaluate Division C++ Java Python3 Medium
398 随机数索引 - Random Pick Index C++ Java Python3 Medium
397 整数替换 - Integer Replacement C++ Java Python3 Medium
396 旋转函数 - Rotate Function C++ Java Python3 Medium
395 至少有K个重复字符的最长子串 - Longest Substring with At Least K Repeating Characters C++ Java Python3 Medium
394 字符串解码 - Decode String C++ Java Python3 Medium
393 UTF-8 编码验证 - UTF-8 Validation C++ Java Python3 Medium
392 判断子序列 - Is Subsequence C++ Java Python3 Medium
391 完美矩形 - Perfect Rectangle C++ Java Python3 Hard
390 消除游戏 - Elimination Game C++ Java Python3 Medium
389 找不同 - Find the Difference  C++ Java Python3 Easy
388  文件的最长绝对路径 - Longest Absolute File Path C++ Java Python3 Medium
387 字符串中的第一个唯一字符 - First Unique Character in a String C++ Java Python3 Easy
386 字典序排数 - Lexicographical Numbers C++ Java Python3 Medium
385 迷你语法分析器 - Mini Parser C++ Java Python3 Medium
384 打乱数组 - Shuffle an Array C++ Java Python3 Medium
383 赎金信 - Ransom Note C++ Java Python3 Easy
382 链表随机节点 - Linked List Random Node C++ Java Python3 Medium
381 O(1) 时间插入、删除和获取随机元素 - 允许重复 - Insert Delete GetRandom O(1) - Duplicates allowed C++ Java Python3 Hard
380 常数时间插入、删除和获取随机元素 - Insert Delete GetRandom O(1) C++ Java Python3 Medium
379 C++ Java Python3 Medium
378 有序矩阵中第K小的元素 - Kth Smallest Element in a Sorted Matrix C++ Java Python3 Medium
377 组合总和 Ⅳ - Combination Sum IV C++ Java Python3 Medium
376 摆动序列 - Wiggle Subsequence C++ Java Python3 Medium
375 猜数字大小 II - Guess Number Higher or Lower II C++ Java Python3 Medium
374 猜数字大小 - Guess Number Higher or Lower C++ Java Python3 Easy
373 查找和最小的K对数字 - Find K Pairs with Smallest Sums C++ Java Python3 Medium
372 超级次方 - Super Pow C++ Java Python3 Medium
371 两整数之和 - Sum of Two Integers  C++ Java Python3 Easy
370 C++ Java Python3 Medium
369 C++ Java Python3 Medium
368 最大整除子集 - Largest Divisible Subset C++ Java Python3 Medium
367 有效的完全平方数 - Valid Perfect Square C++ Java Python3 Easy
366 C++ Java Python3 Medium
365 水壶问题 - Water and Jug Problem C++ Java Python3 Medium
364 C++ Java Python3 Medium
363 矩形区域不超过 K 的最大数值和 - Max Sum of Rectangle No Larger Than K C++ Java Python3 Hard
362 C++ Java Python3 Medium
361 C++ Java Python3 Medium
360 C++ Java Python3 Medium
359 C++ Java Python3 Easy
358 C++ Java Python3 Hard
357 计算各个位数不同的数字个数 - Count Numbers with Unique Digits C++ Java Python3 Medium
356 C++ Java Python3 Medium
355 C++ Java Python3 Medium
354 俄罗斯套娃信封问题 - Russian Doll Envelopes C++ Java Python3 Hard
353 C++ Java Python3 Medium
352 将数据流变为多个不相交间隔 - Data Stream as Disjoint Intervals C++ Java Python3 Hard
351 安卓解锁模式 $ Android Unlock Patterns C++ Java Python3 Medium
350 两个数组的交集 II - Intersection of Two Arrays II C++ Java Python3 Easy
349 两个数组的交集 - Intersection of Two Arrays C++ Java Python3 Easy
348 设计井字棋游戏 $ Design Tic-Tac-Toe C++ Java Python3 Medium
347 前K个高频元素 - Top K Frequent Elements C++ Java Python3 Medium
346 从数据流中移动平均值 $ Moving Average from Data Stream C++ Java Python3 Easy
345 反转字符串中的元音字母 - Reverse Vowels of a String C++ Java Python3 Easy
344 反转字符串 - Reverse String C++ Java Python3 Easy
343 整数拆分 - Integer Break C++ Java Python3 Medium
342 4的幂 - Power of Four C++ Java Python3 Easy
341 压平嵌套链表迭代器 - Flatten Nested List Iterator C++ Java Python3 Medium
340 最多有K个不同字符的最长子串 $ Longest Substring with At Most K Distinct Characters C++ Java Python3 Hard
339 嵌套链表权重和 $ Nested List Weight Sum C++ Java Python3 Easy
338 比特位计数 - Counting Bits C++ Java Python3 Medium
337 打家劫舍 III - House Robber III C++ Java Python3 Medium
336 回文对 - Palindrome Pairs C++ Java Python3 Hard
335 路径交叉 - Self Crossing C++ Java Python3 Hard
334 递增的三元子序列 - Increasing Triplet Subsequence C++ Java Python3 Medium
333 最大的二分搜索子树 $ Largest BST Subtree C++ Java Python3 Medium
332 重新安排行程 - Reconstruct Itinerary C++ Java Python3 Medium
331 验证二叉树的前序序列化 - Verify Preorder Serialization of a Binary Tree C++ Java Python3 Medium
330 按要求补齐数组 - Patching Array C++ Java Python3 Hard
329 矩阵中的最长递增路径 - Longest Increasing Path in a Matrix C++ Java Python3 Hard
328 奇偶链表 - Odd Even Linked List C++ Java Python3 Medium
327 区间和的个数 - Count of Range Sum C++ Java Python3 Hard
326 3的幂 - Power of Three C++ Java Python3 Easy
325 最大子数组之和为k $ Maximum Size Subarray Sum Equals k C++ Java Python3 Medium
324 摆动排序 II - Wiggle Sort II C++ Java Python3 Medium
323 无向图中的连通区域的个数 $ Number of Connected Components in an Undirected Graph C++ Java Python3 Medium
322 零钱兑换 - Coin Change C++ Java Python3 Medium
321 拼接最大数 - Create Maximum Number C++ Java Python3 Hard
320 通用简写 $ Generalized Abbreviation C++ Java Python3 Medium
319 灯泡开关 - Bulb Switcher C++ Java Python3 Medium
318 最大单词长度乘积 - Maximum Product of Word Lengths C++ Java Python3 Medium
317 建筑物的最短距离 $ Shortest Distance from All Buildings C++ Java Python3 Hard
316 去除重复字母 - Remove Duplicate Letters C++ Java Python3 Hard
315 计算右侧小于当前元素的个数 - Count of Smaller Numbers After Self C++ Java Python3 Hard
314 二叉树的竖直遍历 $ Binary Tree Vertical Order Traversal C++ Java Python3 Medium
313 超级丑数 - Super Ugly Number C++ Java Python3 Medium
312 戳气球 - Burst Balloons C++ Java Python3 Hard
311 稀疏矩阵相乘 $ Sparse Matrix Multiplication C++ Java Python3 Medium
310 最小高度树 - Minimum Height Trees C++ Java Python3 Medium
309 最佳买卖股票时机含冷冻期 - Best Time to Buy and Sell Stock with Cooldown C++ Java Python3 Medium
308 二维区域和检索 - 可变 $ Range Sum Query 2D - Mutable C++ Java Python3 Hard
307 区域和检索 - 数组可修改 - Range Sum Query - Mutable C++ Java Python3 Medium
306 累加数 - Additive Number C++ Java Python3 Medium
305 岛屿的个数 II $ Number of Islands II C++ Java Python3 Hard
304 二维区域和检索 - 矩阵不可变 - Range Sum Query 2D - Immutable C++ Java Python3 Medium
303 区域和检索 - 数组不可变 - Range Sum Query - Immutable C++ Java Python3 Easy
302 包含黑色像素的最小矩形 $ Smallest Rectangle Enclosing Black Pixels C++ Java Python3 Hard
301 删除无效的括号 - Remove Invalid Parentheses C++ Java Python3 Hard
300 最长上升子序列 - Longest Increasing Subsequence C++ Java Python3 Medium
299 猜数字游戏 - Bulls and Cows C++ Java Python3 Medium
298 二叉树最长连续序列 $ Binary Tree Longest Consecutive Sequence C++ Java Python3 Medium
297 二叉树的序列化与反序列化 - Serialize and Deserialize Binary Tree C++ Java Python3 Hard
296 最佳开会地点 $ Best Meeting Point C++ Java Python3 Hard
295 数据流的中位数 - Find Median from Data Stream C++ Java Python3 Hard
294 翻转游戏之 II $ Flip Game II C++ Java Python3 Medium
293 翻转游戏 $ Flip Game C++ Java Python3 Easy
292 Nim游戏 - Nim Game C++ Java Python3 Easy
291 单词模式 II $ Word Pattern II C++ Java Python3 Hard
290 单词模式 - Word Pattern  C++ Java Python3 Easy
289 生命游戏 - Game of Life C++ Java Python3 Medium
288 唯一单词缩写 $ Unique Word Abbreviation C++ Java Python3 Medium
287 寻找重复数 - Find the Duplicate Number C++ Java Python3 Medium
286 墙和门 $ Walls and Gates C++ Java Python3 Medium
285 二叉搜索树中的中序后继节点 $ Inorder Successor in BST C++ Java Python3 Medium
284 顶端迭代器 - Peeking Iterator C++ Java Python3 Medium
283 移动零 - Move Zeroes C++ Java Python3 Easy
282 给表达式添加运算符 - Expression Add Operators C++ Java Python3 Hard
281 之字形迭代器 $ Zigzag Iterator C++ Java Python3 Medium
280 摆动排序 $ Wiggle Sort C++ Java Python3 Medium
279 完全平方数 - Perfect Squares C++ Java Python3 Medium
278 第一个错误的版本 - First Bad Version C++ Java Python3 Easy
277 寻找名人 $ Find the Celebrity C++ Java Python3 Medium
276 粉刷栅栏 $ Paint Fence C++ Java Python3 Easy
275 H指数 II - H-Index II C++ Java Python3 Medium
274 H指数 - H-Index C++ Java Python3 Medium
273 整数转换英文表示 - Integer to English Words C++ Java Python3 Hard
272 最近的二分搜索树的值 II $ Closest Binary Search Tree Value II C++ Java Python3 Hard
271 加码解码字符串 $ Encode and Decode Strings C++ Java Python3 Medium
270 最近的二分搜索树的值 $ Closest Binary Search Tree Value C++ Java Python3 Easy
269 外星人词典 $ Alien Dictionary C++ Java Python3 Hard
268 缺失数字 - Missing Number C++ Java Python3 Easy
267 回文全排列 II $ Palindrome Permutation II C++ Java Python3 Medium
266 回文全排列 $ Palindrome Permutation C++ Java Python3 Easy
265 粉刷房子 II $ Paint House II C++ Java Python3 Hard
264 丑数 II - Ugly Number II C++ Java Python3 Medium
263 丑数 - Ugly Number C++ Java Python3 Easy
262 行程和用户 - Trips and Users C++ Java Python3 Hard
261 图验证树 $ Graph Valid Tree C++ Java Python3 Medium
260 只出现一次的数字 III - Single Number III C++ Java Python3 Medium
259 三数之和较小值 $ 3Sum Smaller C++ Java Python3 Medium
258 各位相加 - Add Digits C++ Java Python3 Easy
257 二叉树的所有路径 - Binary Tree Paths C++ Java Python3 Easy
256 粉刷房子 $ Paint House C++ Java Python3 Easy
255 验证二叉搜索树的先序序列 $ Verify Preorder Sequence in Binary Search Tree C++ Java Python3 Medium
254 因子组合 $ Factor Combinations C++ Java Python3 Medium
253 会议室 II $ Meeting Rooms II C++ Java Python3 Medium
252 会议室 $ Meeting Rooms C++ Java Python3 Easy
251 展平二维向量 $ Flatten 2D Vector C++ Java Python3 Medium
250 计数相同值子树的个数 $ Count Univalue Subtrees C++ Java Python3 Medium
249 群组偏移字符串 $ Group Shifted Strings C++ Java Python3 Medium
248 对称数 III $ Strobogrammatic Number III C++ Java Python3 Hard
247 对称数 II $ Strobogrammatic Number II C++ Java Python3 Medium
246 对称数 $ Strobogrammatic Number C++ Java Python3 Easy
245 最短单词距离 III $ Shortest Word Distance III C++ Java Python3 Medium
244 最短单词距离 II $ Shortest Word Distance II C++ Java Python3 Medium
243 最短单词距离 $ Shortest Word Distance C++ Java Python3 Easy
242 有效的字母异位词 - Valid Anagram C++ Java Python3 Easy
241 为运算表达式设计优先级 - Different Ways to Add Parentheses C++ Java Python3 Medium
240 搜索二维矩阵 II - Search a 2D Matrix II C++ Java Python3 Medium
239 滑动窗口最大值 - Sliding Window Maximum C++ Java Python3 Hard
238 除自身以外数组的乘积 - Product of Array Except Self C++ Java Python3 Medium
237 删除链表中的节点 - Delete Node in a Linked List C++ Java Python3 Easy
236 二叉树的最近公共祖先 - Lowest Common Ancestor of a Binary Tree C++ Java Python3 Medium
235 二叉搜索树的最近公共祖先 - Lowest Common Ancestor of a Binary Search Tree C++ Java Python3 Easy
234 回文链表 - Palindrome Linked List C++ Java Python3 Easy
233 数字1的个数 - Number of Digit One C++ Java Python3 Hard
232 用栈实现队列 - Implement Queue using Stacks C++ Java Python3 Easy
231 2的幂 - Power of Two C++ Java Python3 Easy
230 二叉搜索树中第K小的元素 - Kth Smallest Element in a BST C++ Java Python3 Medium
229 求众数 II - Majority Element II C++ Java Python3 Medium
228 汇总区间 - Summary Ranges C++ Java Python3 Medium
227 基本计算器 II - Basic Calculator II C++ Java Python3 Medium
226 翻转二叉树 - Invert Binary Tree C++ Java Python3 Easy
225 用队列实现栈 - Implement Stack using Queues C++ Java Python3 Easy
224 基本计算器 - Basic Calculator C++ Java Python3 Hard
223 矩形面积 - Rectangle Area C++ Java Python3 Medium
222 完全二叉树的节点个数 - Count Complete Tree Nodes C++ Java Python3 Medium
221 最大正方形 - Maximal Square C++ Java Python3 Medium
220 存在重复元素 III - Contains Duplicate III C++ Java Python3 Medium
219 存在重复元素 II - Contains Duplicate II C++ Java Python3 Easy
218 天际线问题 - The Skyline Problem C++ Java Python3 Hard
217 存在重复元素 - Contains Duplicate C++ Java Python3 Easy
216 组合总和 III - Combination Sum III C++ Java Python3 Medium
215 数组中的第K个最大元素 - Kth Largest Element in an Array C++ Java Python3 Medium
214 最短回文串 - Shortest Palindrome C++ Java Python3 Hard
213 打家劫舍 II - House Robber II C++ Java Python3 Medium
212 单词搜索 II - Word Search II C++ Java Python3 Hard
211 添加与搜索单词 - 数据结构设计 - Add and Search Word - Data structure design C++ Java Python3 Medium
210 课程表 II - Course Schedule II C++ Java Python3 Medium
209 长度最小的子数组 - Minimum Size Subarray Sum C++ Java Python3 Medium
208 实现 Trie (前缀树) - Implement Trie (Prefix Tree) C++ Java Python3 Medium
207 课程表 - Course Schedule C++ Java Python3 Medium
206 反转链表 - Reverse Linked List C++ Java Python3 Easy
205 同构字符串 - Isomorphic Strings C++ Java Python3 Easy
204 计数质数 - Count Primes C++ Java Python3 Easy
203 移除链表元素 - Remove Linked List Elements C++ Java Python3 Easy
202 快乐数 - Happy Number C++ Java Python3 Easy
201 数字范围按位与 - Bitwise AND of Numbers Range C++ Java Python3 Medium
200 岛屿的个数 - Number of Islands C++ Java Python3 Medium
199 二叉树的右视图 - Binary Tree Right Side View C++ Java Python3 Medium
198 打家劫舍 - House Robber C++ Java Python3 Easy
197 上升的温度 - Rising Temperature C++ Java Python3 Easy
196 删除重复的电子邮箱 - Delete Duplicate Emails C++ Java Python3 Easy
195 第十行 - Tenth Line C++ Java Python3 Easy
194 转置文件 - Transpose File C++ Java Python3 Medium
193 有效电话号码 - Valid Phone Numbers C++ Java Python3 Easy
192 统计词频 - Word Frequency  C++ Java Python3 Medium
191 位1的个数 - Number of 1 Bits C++ Java Python3 Easy
190 颠倒二进制位 - Reverse Bits C++ Java Python3 Easy
189 旋转数组 - Rotate Array C++ Java Python3 Easy
188 买卖股票的最佳时机 IV - Best Time to Buy and Sell Stock IV C++ Java Python3 Hard
187 重复的DNA序列 - Repeated DNA Sequences C++ Java Python3 Medium
186 翻转字符串中的单词 II $ Reverse Words in a String II C++ Java Python3 Medium
185 部门工资前三高的员工 - Department Top Three Salaries C++ Java Python3 Hard
184 部门工资最高的员工 - Department Highest Salary C++ Java Python3 Medium
183 从不订购的客户 - Customers Who Never Order C++ Java Python3 Easy
182 查找重复的电子邮箱 - Duplicate Emails C++ Java Python3 Easy
181 超过经理收入的员工 - Employees Earning More Than Their Managers C++ Java Python3 Easy
180 连续出现的数字 - Consecutive Numbers C++ Java Python3 Medium
179 最大数 - Largest Number C++ Java Python3 Medium
178 分数排名 - Rank Scores C++ Java Python3 Medium
177 第N高的薪水 - Nth Highest Salary  C++ Java Python3 Medium
176 第二高的薪水 - Second Highest Salary C++ Java Python3 Easy
175 组合两个表 - Combine Two Tables C++ Java Python3 Easy
174 地下城游戏 - Dungeon Game C++ Java Python3 Hard
173 二叉搜索树迭代器 - Binary Search Tree Iterator C++ Java Python3 Medium
172 阶乘后的零 - Factorial Trailing Zeroes C++ Java Python3 Easy
171 Excel表列序号 - Excel Sheet Column Number C++ Java Python3 Easy
170 两数之和之三 - 数据结构设计 $ Two Sum III - Data structure design C++ Java Python3 Easy
169 求众数 - Majority Element C++ Java Python3 Easy
168 Excel表列名称 - Excel Sheet Column Title C++ Java Python3 Easy
167 两数之和 II - 输入有序数组 - Two Sum II - Input array is sorted C++ Java Python3 Easy
166 分数到小数 - Fraction to Recurring Decimal C++ Java Python3 Medium
165 比较版本号 - Compare Version Numbers C++ Java Python3 Medium
164 最大间距 - Maximum Gap C++ Java Python3 Hard
163 缺失区间 $ Missing Ranges C++ Java Python3 Medium
162 寻找峰值 - Find Peak Element C++ Java Python3 Medium
161 一次编辑距离 $ One Edit Distance C++ Java Python3 Medium
160 相交链表 - Intersection of Two Linked Lists C++ Java Python3 Easy
159 具有最多两个不同字符的最长子串 $ Longest Substring with At Most Two Distinct Characters C++ Java Python3 Hard
158 用Read4来读取N个字符II $ Read N Characters Given Read4 II C++ Java Python3 Hard
157 用Read4来读取N个字符 $ Read N Characters Given Read4 C++ Java Python3 Easy
156 二叉树的上下颠倒 $ Binary Tree Upside Down C++ Java Python3 Medium
155 最小栈 - Min Stack C++ Java Python3  Easy
154 寻找旋转排序数组中的最小值 II - Find Minimum in Rotated Sorted Array II C++ Java Python3 Hard
153 寻找旋转排序数组中的最小值 - Find Minimum in Rotated Sorted Array C++ Java Python3 Medium
152 乘积最大子序列 - Maximum Product Subarray C++ Java Python3 Medium
151 翻转字符串里的单词 - Reverse Words in a String C++ Java Python3 Medium
150 逆波兰表达式求值 - Evaluate Reverse Polish Notation C++ Java Python3 Medium
149 直线上最多的点数 - Max Points on a Line C++ Java Python3 Hard
148 排序链表 - Sort List C++ Java Python3 Medium
147 对链表进行插入排序 - Insertion Sort List C++ Java Python3 Medium
146 LRU缓存机制 - LRU Cache C++ Java Python3 Hard
145 二叉树的后序遍历 - Binary Tree Postorder Traversal C++ Java Python3 Hard
144 二叉树的前序遍历 - Binary Tree Preorder Traversal C++ Java Python3 Medium
143 重排链表 - Reorder List C++ Java Python3 Medium
142 环形链表 II - Linked List Cycle II C++ Java Python3 Medium
141 环形链表 - Linked List Cycle C++ Java Python3 Easy
140 单词拆分 II - Word Break II C++ Java Python3 Hard
139 单词拆分 - Word Break C++ Java Python3 Medium
138 复制带随机指针的链表 - Copy List with Random Pointer C++ Java Python3 Medium
137 只出现一次的数字 II - Single Number II C++ Java Python3 Medium
136 只出现一次的数字 - Single Number C++ Java Python3 Easy
135 分发糖果 - Candy C++ Java Python3 Hard
134 加油站 - Gas Station C++ Java Python3 Medium
133 克隆图 - Clone Graph C++ Java Python3 Medium
132 分割回文串 II - Palindrome Partitioning II C++ Java Python3 Hard
131 分割回文串 - Palindrome Partitioning C++ Java Python3 Medium
130 被围绕的区域 - Surrounded Regions C++ Java Python3 Medium
129 求根到叶子节点数字之和 - Sum Root to Leaf Numbers C++ Java Python3 Medium
128 最长连续序列 - Longest Consecutive Sequence C++ Java Python3 Hard
127 单词接龙 - Word Ladder C++ Java Python3 Medium
126 单词接龙 II - Word Ladder II C++ Java Python3 Hard
125 验证回文串 - Valid Palindrome C++ Java Python3 Easy
124 二叉树中的最大路径和 - Binary Tree Maximum Path Sum C++ Java Python3 Hard
123 买卖股票的最佳时机 III - Best Time to Buy and Sell Stock III C++ Java Python3 Hard
122 买卖股票的最佳时机 II - Best Time to Buy and Sell Stock II C++ Java Python3 Easy
121 买卖股票的最佳时机 I - Best Time to Buy and Sell Stock C++ Java Python3 Easy
120 三角形最小路径和 - Triangle C++ Java Python3 Medium
119 杨辉三角 II - Pascal's Triangle II C++ Java Python3 Easy
118 杨辉三角 - Pascal's Triangle C++ Java Python3 Easy
117 填充同一层的兄弟节点 II - Populating Next Right Pointers in Each Node II  C++ Java Python3 Medium
116 填充同一层的兄弟节点 - Populating Next Right Pointers in Each Node C++ Java Python3 Medium
115 不同的子序列 - Distinct Subsequences C++ Java Python3 Hard
114 二叉树展开为链表 - Flatten Binary Tree to Linked List C++ Java Python3 Medium
113 路径总和 II - Path Sum II C++ Java Python3 Medium
112  路径总和 - Path Sum C++ Java Python3 Easy
111 二叉树的最小深度 - Minimum Depth of Binary Tree C++ Java Python3 Easy
110 平衡二叉树 - Balanced Binary Tree C++ Java Python3 Easy
109 有序链表转换二叉搜索树 - Convert Sorted List to Binary Search Tree C++ Java Python3 Medium
108 将有序数组转换为二叉搜索树 - Convert Sorted Array to Binary Search Tree C++ Java Python3 Easy
107 二叉树的层次遍历 II - Binary Tree Level Order Traversal II C++ Java Python3 Easy
106 从中序与后序遍历序列构造二叉树 - Construct Binary Tree from Inorder and Postorder Traversal C++ Java Python3 Medium
105 从前序与中序遍历序列构造二叉树 - Construct Binary Tree from Preorder and Inorder Traversal C++ Java Python3 Medium
104 二叉树的最大深度 - Maximum Depth of Binary Tree C++ Java Python3 Easy
103 二叉树的锯齿形层次遍历 - Binary Tree Zigzag Level Order Traversal C++ Java Python3 Medium
102 二叉树的层次遍历 - Binary Tree Level Order Traversal C++ Java Python3 Medium
101 对称二叉树 - Symmetric Tree C++ Java Python3 Easy
100 相同的树 - Same Tree C++ Java Python3 Hard
99 恢复二叉搜索树 - Recover Binary Search Tree C++ Java Python3 Medium
98 验证二叉搜索树 - Validate Binary Search Tree C++ Java Python3 Medium
97 交错字符串 - Interleaving String C++ Java Python3 Medium
96 不同的二叉搜索树 - Unique Binary Search Trees C++ Java Python3 Medium
95 不同的二叉搜索树 II - Unique Binary Search Trees II C++ Java Python3 Medium
94 二叉树的中序遍历 - Binary Tree Inorder Traversal C++ Java Python3 Medium
93 复原IP地址 - Restore IP Addresses C++ Java Python3 Medium
92 反转链表 II - Reverse Linked List II C++ Java Python3 Medium
91 解码方法 - Decode Ways C++ Java Python3 Medium
90 子集 II - Subsets II C++ Java Python3 Medium
89 格雷编码 - Gray Code C++ Java Python3 Medium
88 合并两个有序数组 - Merge Sorted Array C++ Java Python3 Easy
87 扰乱字符串 - Scramble String C++ Java Python3 Hard
86 分隔链表 - Partition List C++ Java Python3 Medium
85 最大矩形 - Maximal Rectangle C++ Java Python3 Hard
84 柱状图中最大的矩形 - Largest Rectangle in Histogram C++ Java Python3 Hard
83 删除排序链表中的重复元素 - Remove Duplicates from Sorted List C++ Java Python3 Easy
82 删除排序链表中的重复元素 II - Remove Duplicates from Sorted List II C++ Java Python3 Medium
81 搜索旋转排序数组 II - Search in Rotated Sorted Array II C++ Java Python3 Medium
80 删除排序数组中的重复项 II - Remove Duplicates from Sorted Array II C++ Java Python3 Medium
79 单词搜索 - Word Search C++ Java Python3 Medium
78 子集 - Subsets C++ Java Python3 Medium
77 组合 - Combinations  C++ Java Python3 Medium
76 最小覆盖子串 - Minimum Window Substring C++ Java Python3 Hard
75 颜色分类 - Sort Colors C++ Java Python3 Medium
74 搜索二维矩阵 - Search a 2D Matrix C++ Java Python3 Medium
73 矩阵置零 - Set Matrix Zeroes C++ Java Python3 Medium
72 编辑距离 - Edit Distance C++ Java Python3 Hard
71 简化路径 - Simplify Path C++ Java Python3 Medium
70 爬楼梯 - Climbing Stairs C++ Java Python3 Easy
69 x 的平方根 - Sqrt(x) C++ Java Python3 Easy
68 文本左右对齐 - Text Justification C++ Java Python3 Hard
67 二进制求和 - Add Binary C++ Java Python3 Easy
66 加一 - Plus One C++ Java Python3 Easy
65 有效数字 - Valid Number C++ Java Python3 Hard
64 最小路径和 - Minimum Path Sum C++ Java Python3 Medium
63 不同路径 II - Unique Paths II C++ Java Python3 Medium
62 不同路径 - Unique Paths C++ Java Python3 Medium
61 旋转链表 - Rotate List C++ Java Python3 Medium
60 第k个排列 - Permutation Sequence C++ Java Python3 Medium
59 螺旋矩阵 II - Spiral Matrix II C++ Java Python3 Medium
58 最后一个单词的长度 - Length of Last Word C++ Java Python3 Easy
57 插入区间 - Insert Interval C++ Java Python3 Hard
56 合并区间 - Merge Intervals C++ Java Python3 Medium
55 跳跃游戏 - Jump Game C++ Java Python3 Medium
54 螺旋矩阵 - Spiral Matrix C++ Java Python3 Medium
53 最大子序和 - Maximum Subarray C++ Java Python3 Easy
52 N皇后 II - N-Queens II C++ Java Python3 Hard
51 N皇后 - N-Queens C++ Java Python3 Hard
50 Pow(x, n) - Pow(x, n) C++ Java Python3 Medium
49 字母异位词分组 - Group Anagrams C++ Java Python3 Medium
48 旋转图像 - Rotate Image C++ Java Python3 Medium
47 全排列 II - Permutations II C++ Java Python3 Medium
46 全排列 - Permutations C++ Java Python3 Medium
45 跳跃游戏 II - Jump Game II C++ Java Python3 Hard
44 通配符匹配 - Wildcard Matching C++ Java Python3 Hard
43 字符串相乘 - Multiply Strings C++ Java Python3 Medium
42 接雨水 - Trapping Rain Water C++ Java Python3 Hard
41 缺失的第一个正数 - First Missing Positive C++ Java Python3 Hard
40 组合总和 II - Combination Sum II C++ Java Python3 Medium
39 组合总和 - Combination Sum C++ Java Python3 Medium
38 报数 - Count and Say C++ Java Python3 Easy
37 解数独 - Sudoku Solver C++ Java Python3 Hard
36 有效的数独 - Valid Sudoku C++ Java Python3 Medium
35 搜索插入位置 - Search Insert Position C++ Java Python3 Easy
34 在排序数组中查找元素的第一个和最后一个位置 - Find First and Last Position of Element in Sorted Array C++ Java Python3 Medium
33 搜索旋转排序数组 - Search in Rotated Sorted Array C++ Java Python3 Medium
32 最长有效括号 - Longest Valid Parentheses C++ Java Python3 Hard
31 下一个排列 - Next Permutation C++ Java Python3 Medium
30 与所有单词相关联的字串 - Substring with Concatenation of All Words C++ Java Python3 Hard
29 两数相除 - Divide Two Integers C++ Java Python3 Medium
28 实现strStr() - Implement strStr() C++ Java Python3  Easy
27 移除元素 - Remove Element C++ Java Python3  Easy
26 删除排序数组中的重复项 - Remove Duplicates from Sorted Array C++ Java Python3 Easy
25 k个一组翻转链表 - Reverse Nodes in k-Group C++ Java Python3 Hard
24 两两交换链表中的节点 - Swap Nodes in Pairs C++ Java Python3 Medium
23 合并K个排序链表 - Merge k Sorted Lists C++ Java Python3 Hard
22 括号生成 - Generate Parentheses C++ Java Python3 Medium 
21 合并两个有序链表 - Merge Two Sorted Lists C++ Java Python3 Easy
20 有效的括号 - Valid Parentheses C++ Java Python3 Easy
19 删除链表的倒数第N个节点 - Remove Nth Node From End of List C++ Java Python3 Medium
18 四数之和 - 4Sum C++ Java Python3 Medium
17 电话号码的字母组合 - Letter Combinations of a Phone Number C++ Java Python3 Medium
16 最接近的三数之和 - 3Sum Closest C++ Java Python3 Medium
15 三数之和 - 3Sum C++ Java Python3 Medium
14 最长公共前缀 - Longest Common Prefix C++ Java Python3 Easy
13 罗马数字转整数 - Roman to Integer C++ Java Python3 Easy
12 整数转罗马数字 - Integer to Roman C++ Java Python3 Medium
11 盛最多水的容器 - Container With Most Water C++ Java Python3 Medium
10 正则表达式匹配 - Regular Expression Matching C++ Java Python3 Hard
9 回文数 - Palindrome Number C++ Java Python3 Easy
8 字符串转整数 (atoi) - String to Integer (atoi) C++ Java Python3 Medium
7 反转整数 - Reverse Integer C++ Java Python3 Easy
6 Z字形变换 - ZigZag Conversion C++ Java Python3 Medium
5 最长回文子串 - Longest Palindromic Substring C++ Java Python3 Medium
4 两个排序数组的中位数 - Median of Two Sorted Arrays C++ Java Python3 Hard
3 无重复字符的最长子串 - Longest Substring Without Repeating Characters C++ Java Python3 Medium
2 两数相加 - Add Two Numbers C++ Java Python3 Medium
1 两数之和 - Two Sum C++ Java Python3 Easy

About

LeetCode Solutions by ALL programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published