Skip to content

shunminli/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

Contests

title solution
weekly-contest-57 solution
weekly-contest-59 solution
weekly-contest-268 solution

Problems

solution title 题名 answer difficulty
1 Two Sum 两数之和 c++, go, java, js, scala Easy
2 Add Two Numbers 两数相加 java Medium
14 Longest Common Prefix 最长公共前缀 java Easy
15 3Sum 三数之和 java Medium
23 Merge k Sorted Lists 合并K个排序链表 java Hard
33 Search in Rotated Sorted Array 搜索旋转排序数组 java Medium
43 Multiply Strings 字符串相乘 go Medium
81 Search in Rotated Sorted Array II 搜索旋转排序数组 II java Medium
84 Largest Rectangle in Histogram 柱状图中最大的矩形 java Hard
85 Maximal Rectangle 最大矩形 java Hard
98 Validate Binary Search Tree 验证二叉搜索树 java Medium
140 Word Break II 单词拆分 II java Hard
146 LRU Cache LRU缓存机制 java Medium
155 Min Stack 最小栈 java Easy
227 Basic Calculator II 227. 基本计算器 II java Medium
235 Lowest Common Ancestor of a Binary Search Tree 二叉搜索树的最近公共祖先 java Easy
236 Lowest Common Ancestor of a Binary Tree 二叉树的最近公共祖先 java Medium
386 Lexicographical Numbers 字典序排数 java Medium
432 All O`one Data Structure 全 O(1) 的数据结构 java Hard
525 Contiguous Array 连续数组 java Medium
547 Friend Circles 朋友圈 java Medium
695 Max Area of Island 岛屿的最大面积 java Medium
720 Longest Word in Dictionary 词典中最长的单词 java Easy
728 Self Dividing Numbers 自除数 go Easy
729 My Calendar I 我的日程安排表 I java, js Medium
730 Count Different Palindromic Subsequences 统计不同回文子序列 go Hard
731 My Calendar II 我的日程安排表 II java Medium
814 Binary Tree Pruning 二叉树剪枝 java Medium
887 Super Egg Drop 鸡蛋掉落 java Hard
971 Flip Binary Tree To Match Preorder Traversal 翻转二叉树以匹配先序遍历 java Medium
1027 Longest Arithmetic Subsequence 最长等差数列 java Medium
1072 Flip Columns For Maximum Number of Equal Rows 按列翻转得到最大值等行数 java Medium
1161 Maximum Level Sum of a Binary Tree 最大层内元素和 java Medium
1823 Find the Winner of the Circular Game 找出游戏的获胜者 java Medium
2080 Range Frequency Queries 区间内查询数字的频率 java Medium

Other Problems

solution title 题名 answer difficulty
search-rotate-array-lcci - 搜索旋转数组 java Medium