Convert Figma logo to code with AI

halfrost logoLeetCode-Go

✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解

32,688
5,670
32,688
19

Top Related Projects

Go Solution for LeetCode algorithms problems, 100% coverage.

:memo: LeetCode of algorithms with golang solution(updating).

算法模板,最科学的刷题方式,最快速的刷题路径,你值得拥有~

【未来服务器端编程语言】最全空降golang资料补给包(满血战斗),包含文章,书籍,作者论文,理论分析,开源框架,云原生,大佬视频,大厂实战分享ppt

7 days golang programs from scratch (web framework Gee, distributed cache GeeCache, object relational mapping ORM framework GeeORM, rpc framework GeeRPC etc) 7天用Go动手写/从零实现系列

3,537

101+ coding interview problems in Go

Quick Overview

LeetCode-Go is a comprehensive collection of LeetCode problem solutions implemented in Go. It provides detailed explanations, time and space complexity analyses, and well-commented code for a wide range of algorithmic problems. This repository serves as an excellent resource for developers preparing for technical interviews or looking to improve their problem-solving skills using Go.

Pros

  • Extensive coverage of LeetCode problems with solutions in Go
  • Detailed explanations and complexity analyses for each problem
  • Well-organized structure with problems categorized by topics
  • Regular updates and contributions from the community

Cons

  • May not cover all the latest LeetCode problems
  • Some solutions might not be optimized for all edge cases
  • Primarily focused on Go, limiting its usefulness for developers using other languages
  • Reliance on external resources (LeetCode problem descriptions) for full context

Code Examples

  1. Two Sum problem solution:
func twoSum(nums []int, target int) []int {
    m := make(map[int]int)
    for i, num := range nums {
        if j, ok := m[target-num]; ok {
            return []int{j, i}
        }
        m[num] = i
    }
    return nil
}

This code solves the Two Sum problem using a hash map for O(n) time complexity.

  1. Reverse Linked List solution:
func reverseList(head *ListNode) *ListNode {
    var prev *ListNode
    curr := head
    for curr != nil {
        next := curr.Next
        curr.Next = prev
        prev = curr
        curr = next
    }
    return prev
}

This code reverses a singly linked list iteratively.

  1. Binary Tree Inorder Traversal:
func inorderTraversal(root *TreeNode) []int {
    var result []int
    var inorder func(*TreeNode)
    inorder = func(node *TreeNode) {
        if node == nil {
            return
        }
        inorder(node.Left)
        result = append(result, node.Val)
        inorder(node.Right)
    }
    inorder(root)
    return result
}

This code performs an inorder traversal of a binary tree using recursion.

Getting Started

To use the solutions in this repository:

  1. Clone the repository:

    git clone https://github.com/halfrost/LeetCode-Go.git
    
  2. Navigate to the desired problem's directory:

    cd LeetCode-Go/leetcode/0001.Two-Sum
    
  3. Run the Go file:

    go run 1.Two_Sum.go
    
  4. To run tests:

    go test
    

Remember to have Go installed on your system before running the code.

Competitor Comparisons

Go Solution for LeetCode algorithms problems, 100% coverage.

Pros of LeetCode-in-Go

  • More comprehensive coverage of LeetCode problems (1000+ solutions)
  • Includes a progress tracking system for solved problems
  • Provides detailed explanations and analysis for each solution

Cons of LeetCode-in-Go

  • Less frequent updates compared to LeetCode-Go
  • May lack some of the latest LeetCode problems and their solutions
  • Documentation and code comments are not as extensive as LeetCode-Go

Code Comparison

LeetCode-in-Go:

func twoSum(nums []int, target int) []int {
    m := make(map[int]int)
    for i, num := range nums {
        if j, ok := m[target-num]; ok {
            return []int{j, i}
        }
        m[num] = i
    }
    return nil
}

LeetCode-Go:

func twoSum(nums []int, target int) []int {
    hash := make(map[int]int)
    for i, num := range nums {
        if j, ok := hash[target-num]; ok {
            return []int{j, i}
        }
        hash[num] = i
    }
    return []int{}
}

Both implementations are similar, with minor differences in variable naming and return values for the case when no solution is found.

:memo: LeetCode of algorithms with golang solution(updating).

Pros of awesome-golang-algorithm

  • Broader scope, covering various algorithms and data structures beyond LeetCode problems
  • Includes explanations and implementations for classic algorithms (e.g., sorting, searching)
  • Provides a more comprehensive resource for learning algorithms in Go

Cons of awesome-golang-algorithm

  • Less focused on LeetCode-specific problem-solving strategies
  • May not cover as many LeetCode problems as LeetCode-Go
  • Organization might be less structured for those specifically preparing for coding interviews

Code Comparison

LeetCode-Go:

func twoSum(nums []int, target int) []int {
    m := make(map[int]int)
    for i, num := range nums {
        if j, ok := m[target-num]; ok {
            return []int{j, i}
        }
        m[num] = i
    }
    return nil
}

awesome-golang-algorithm:

func BubbleSort(arr []int) []int {
    for i := 0; i < len(arr)-1; i++ {
        for j := 0; j < len(arr)-1-i; j++ {
            if arr[j] > arr[j+1] {
                arr[j], arr[j+1] = arr[j+1], arr[j]
            }
        }
    }
    return arr
}

The code examples demonstrate the different focus of each repository. LeetCode-Go provides solutions to specific LeetCode problems, while awesome-golang-algorithm covers a wider range of algorithms and data structures.

算法模板,最科学的刷题方式,最快速的刷题路径,你值得拥有~

Pros of algorithm-pattern

  • Focuses on algorithm patterns and problem-solving strategies, providing a more conceptual approach
  • Includes detailed explanations and visualizations for better understanding of algorithms
  • Covers a wider range of topics beyond just LeetCode problems, including system design and behavioral interview preparation

Cons of algorithm-pattern

  • Less comprehensive in terms of the number of LeetCode problems covered compared to LeetCode-Go
  • Code examples are primarily in Go, limiting its usefulness for developers using other languages
  • Updates and maintenance appear to be less frequent than LeetCode-Go

Code Comparison

LeetCode-Go:

func twoSum(nums []int, target int) []int {
    m := make(map[int]int)
    for i, num := range nums {
        if j, ok := m[target-num]; ok {
            return []int{j, i}
        }
        m[num] = i
    }
    return nil
}

algorithm-pattern:

func twoSum(nums []int, target int) []int {
    hashTable := map[int]int{}
    for i, x := range nums {
        if p, ok := hashTable[target-x]; ok {
            return []int{p, i}
        }
        hashTable[x] = i
    }
    return nil
}

Both repositories provide similar implementations for the Two Sum problem, with minor differences in variable naming and map initialization.

【未来服务器端编程语言】最全空降golang资料补给包(满血战斗),包含文章,书籍,作者论文,理论分析,开源框架,云原生,大佬视频,大厂实战分享ppt

Pros of Introduction-to-Golang

  • Comprehensive learning resource for Go beginners
  • Covers a wide range of Go topics beyond just coding problems
  • Includes practical examples and explanations of Go concepts

Cons of Introduction-to-Golang

  • Less focused on algorithm practice compared to LeetCode-Go
  • May not be as suitable for interview preparation
  • Updates less frequently than LeetCode-Go

Code Comparison

Introduction-to-Golang example (basic Go syntax):

package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

LeetCode-Go example (algorithm solution):

func twoSum(nums []int, target int) []int {
    m := make(map[int]int)
    for i, num := range nums {
        if j, ok := m[target-num]; ok {
            return []int{j, i}
        }
        m[num] = i
    }
    return nil
}

Introduction-to-Golang focuses on teaching Go fundamentals, while LeetCode-Go emphasizes algorithm problem-solving. The former is better for newcomers to the language, while the latter is more suitable for those preparing for coding interviews or improving their algorithmic skills in Go.

7 days golang programs from scratch (web framework Gee, distributed cache GeeCache, object relational mapping ORM framework GeeORM, rpc framework GeeRPC etc) 7天用Go动手写/从零实现系列

Pros of 7days-golang

  • Focused on practical Go projects, offering hands-on learning experience
  • Covers a wide range of Go topics in a structured, week-long format
  • Includes detailed explanations and step-by-step tutorials

Cons of 7days-golang

  • Less comprehensive in terms of algorithm coverage compared to LeetCode-Go
  • May not be as suitable for interview preparation or competitive programming
  • Fewer overall examples and problems to practice with

Code Comparison

LeetCode-Go (Binary Tree Inorder Traversal):

func inorderTraversal(root *TreeNode) []int {
    var result []int
    inorder(root, &result)
    return result
}

func inorder(root *TreeNode, output *[]int) {
    if root != nil {
        inorder(root.Left, output)
        *output = append(*output, root.Val)
        inorder(root.Right, output)
    }
}

7days-golang (HTTP Server):

func main() {
    http.HandleFunc("/", indexHandler)
    http.HandleFunc("/hello", helloHandler)
    log.Fatal(http.ListenAndServe(":3000", nil))
}

func indexHandler(w http.ResponseWriter, req *http.Request) {
    fmt.Fprintf(w, "Welcome to the homepage!")
}
3,537

101+ coding interview problems in Go

Pros of algo

  • Focuses on fundamental algorithms and data structures, providing a broader learning experience
  • Includes detailed explanations and visualizations for better understanding
  • Offers implementations in multiple programming languages (Go, Python, JavaScript)

Cons of algo

  • Has fewer problems/solutions compared to LeetCode-Go
  • Less frequently updated, potentially lacking newer problem-solving techniques
  • May not directly align with LeetCode-style coding interview questions

Code Comparison

algo (Go implementation of QuickSort):

func quickSort(arr []int, low, high int) {
    if low < high {
        pivot := partition(arr, low, high)
        quickSort(arr, low, pivot-1)
        quickSort(arr, pivot+1, high)
    }
}

LeetCode-Go (Solution for "Sort an Array" problem):

func sortArray(nums []int) []int {
    quickSort(nums, 0, len(nums)-1)
    return nums
}

func quickSort(nums []int, start, end int) {
    if start >= end {
        return
    }
    pivot := partition(nums, start, end)
    quickSort(nums, start, pivot-1)
    quickSort(nums, pivot+1, end)
}

Both repositories implement similar algorithms, but LeetCode-Go focuses on specific LeetCode problems, while algo provides a more general approach to algorithm implementation and explanation.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

LeetCode in Go

LeetCode Online Judge is a website containing many algorithm questions. Most of them are real interview questions of Google, Facebook, LinkedIn, Apple, etc. and it always help to sharp our algorithm Skills. Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. This repo shows my solutions in Go with the code style strictly follows the Google Golang Style Guide. Please feel free to reference and STAR to support this repo, thank you!

GitHub All Releases Support Go version

GitHub

支持 Progressive Web Apps 和 Dark Mode 的题解电子书《LeetCode Cookbook》 Online Reading

离线版本的电子书《LeetCode Cookbook》PDF Download here

通过 iOS / Android 浏览器安装 PWA 版《LeetCode Cookbook》至设备桌面随时学习

Data Structures

标识了 ✅ 的专题是完成所有题目了的,没有标识的是还没有做完所有题目的

logo



数据结构变种相关题目讲解文章
顺序线性表:向量
单链表1. 双向链表
2. 静态链表
3. 对称矩阵
4. 稀疏矩阵
哈希表1. 散列函数
2. 解决碰撞/填充因子
栈和队列1. 广义栈
2. 双端队列
队列1. 链表实现
2. 循环数组实现
3. 双端队列
字符串1. KMP算法
2. 有限状态自动机
3. 模式匹配有限状态自动机
4. BM 模式匹配算法
5. BM-KMP 算法
6. BF 算法
树1. 二叉树
2. 并查集
3. Huffman 树
数组实现的堆1. 极大堆和极小堆
2. 极大极小堆
3. 双端堆
4. d 叉堆
树实现的堆1. 左堆
2. 扁堆
3. 二项式堆
4. 斐波那契堆
5. 配对堆
查找1. 哈希表
2. 跳跃表
3. 排序二叉树
4. AVL 树
5. B 树 / B+ 树 / B* 树
6. AA 树
7. 红黑树
8. 排序二叉堆
9. Splay 树
10. 双链树
11. Trie 树
12. R 树
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Algorithm

算法具体类型相关题目讲解文章
排序算法1. 冒泡排序
2. 插入排序
3. 选择排序
4. 希尔 Shell 排序
5. 快速排序
6. 归并排序
7. 堆排序
8. 线性排序算法
9. 自省排序
10. 间接排序
11. 计数排序
12. 基数排序
13. 桶排序
14. 外部排序 - k 路归并败者树
15. 外部排序 - 最佳归并树
递归与分治1. 二分搜索/查找
2. 大整数的乘法
3. Strassen 矩阵乘法
4. 棋盘覆盖
5. 合并排序
6. 快速排序
7. 线性时间选择
8. 最接近点对问题
9. 循环赛日程表
动态规划1. 矩阵连乘问题
2. 最长公共子序列
3. 最大子段和
4. 凸多边形最优三角剖分
5. 多边形游戏
6. 图像压缩
7. 电路布线
8. 流水作业调度
9. 0-1 背包问题/背包九讲
10. 最优二叉搜索树
11. 动态规划加速原理
12. 树型 DP
贪心1. 活动安排问题
2. 最优装载
3. 哈夫曼编码
4. 单源最短路径
5. 最小生成树
6. 多机调度问题
回溯法1. 装载问题
2. 批处理作业调度
3. 符号三角形问题
4. n 后问题
5. 0-1 背包问题
6. 最大团问题
7. 图的 m 着色问题
8. 旅行售货员问题
9. 圆排列问题
10. 电路板排列问题
11. 连续邮资问题
搜索1. 枚举
2. DFS
3. BFS
4. 启发式搜索
随机化1. 随机数
2. 数值随机化算法
3. Sherwood 舍伍德算法
4. Las Vegas 拉斯维加斯算法
5. Monte Carlo 蒙特卡罗算法
1. 计算 π 值
2. 计算定积分
3. 解非线性方程组
4. 线性时间选择算法
5. 跳跃表
6. n 后问题
7. 整数因子分解
8. 主元素问题
9. 素数测试
图论1. 遍历 DFS / BFS
2. AOV / AOE 网络
3. Kruskal 算法(最小生成树)
4. Prim 算法(最小生成树)
5. Boruvka 算法(最小生成树)
6. Dijkstra 算法(单源最短路径)
7. Bellman-Ford 算法(单源最短路径)
8. SPFA 算法(单源最短路径)
9. Floyd 算法(多源最短路径)
10. Johnson 算法(多源最短路径)
11. Fleury 算法(欧拉回路)
12. Ford-Fulkerson 算法(最大网络流增广路)
13. Edmonds-Karp 算法(最大网络流)
14. Dinic 算法(最大网络流)
15. 一般预流推进算法
16. 最高标号预流推进 HLPP 算法
17. Primal-Dual 原始对偶算法(最小费用流)18. Kosaraju 算法(有向图强连通分量)
19. Tarjan 算法(有向图强连通分量)
20. Gabow 算法(有向图强连通分量)
21. 匈牙利算法(二分图匹配)
22. Hopcroft-Karp 算法(二分图匹配)
23. kuhn munkras 算法(二分图最佳匹配)
24. Edmonds’ Blossom-Contraction 算法(一般图匹配)
1. 图遍历
2. 有向图和无向图的强弱连通性
3. 割点/割边
3. AOV 网络和拓扑排序
4. AOE 网络和关键路径
5. 最小代价生成树/次小生成树
6. 最短路径问题/第 K 短路问题
7. 最大网络流问题
8. 最小费用流问题
9. 图着色问题
10. 差分约束系统
11. 欧拉回路
12. 中国邮递员问题
13. 汉密尔顿回路
14. 最佳边割集/最佳点割集/最小边割集/最小点割集/最小路径覆盖/最小点集覆盖
15. 边覆盖集
16. 二分图完美匹配和最大匹配问题
17. 仙人掌图
18. 弦图
19. 稳定婚姻问题
20. 最大团问题
数论1. 最大公约数
2. 最小公倍数
3. 分解质因数
4. 素数判定
5. 进制转换
6. 高精度计算
7. 整除问题
8. 同余问题
9. 欧拉函数
10. 扩展欧几里得
11. 置换群
12. 母函数
13. 离散变换
14. 康托展开
15. 矩阵
16. 向量
17. 线性方程组
18. 线性规划
几何1. 凸包 - Gift wrapping
2. 凸包 - Graham scan
3. 线段问题
4. 多边形和多面体相关问题
NP 完全1. 计算模型
2. P 类与 NP 类问题
3. NP 完全问题
4. NP 完全问题的近似算法
1. 随机存取机 RAM
2. 随机存取存储程序机 RASP
3. 图灵机
4. 非确定性图灵机
5. P 类与 NP 类语言
6. 多项式时间验证
7. 多项式时间变换
8. Cook定理
9. 合取范式的可满足性问题 CNF-SAT
10. 3 元合取范式的可满足性问题 3-SAT
11. 团问题 CLIQUE
12. 顶点覆盖问题 VERTEX-COVER
13. 子集和问题 SUBSET-SUM
14. 哈密顿回路问题 HAM-CYCLE
15. 旅行售货员问题 TSP
16. 顶点覆盖问题的近似算法
17. 旅行售货员问题近似算法
18. 具有三角不等式性质的旅行售货员问题
19. 一般的旅行售货员问题
20. 集合覆盖问题的近似算法
21. 子集和问题的近似算法
22. 子集和问题的指数时间算法
23. 子集和问题的多项式时间近似格式
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

LeetCode Problems

一. 个人数据

EasyMediumHardTotal
Optimizing317843152
Accepted287484142913
Total60013055392444
Perfection Rate89.2%83.9%69.7%83.4%
Completion Rate47.8%37.1%26.3%37.4%
----------------------------------------------------------------------------------------------------------------------------

二. 目录

以下已经收录了 787 道题的题解,还有 11 道题在尝试优化到 beats 100%

No.TitleSolutionAcceptanceDifficultyFrequency
0001Two SumGo49.1%Easy
0002Add Two NumbersGo39.7%Medium
0003Longest Substring Without Repeating CharactersGo33.8%Medium
0004Median of Two Sorted ArraysGo35.1%Hard
0005Longest Palindromic SubstringGo32.4%Medium
0006Zigzag ConversionGo43.0%Medium
0007Reverse IntegerGo27.2%Medium
0008String to Integer (atoi)Go16.6%Medium
0009Palindrome NumberGo52.8%Easy
0010Regular Expression Matching28.3%Hard
0011Container With Most WaterGo54.3%Medium
0012Integer to RomanGo60.5%Medium
0013Roman to IntegerGo58.2%Easy
0014Longest Common PrefixGo40.7%Easy
00153SumGo32.2%Medium
00163Sum ClosestGo46.2%Medium
0017Letter Combinations of a Phone NumberGo55.5%Medium
00184SumGo36.5%Medium
0019Remove Nth Node From End of ListGo39.9%Medium
0020Valid ParenthesesGo40.7%Easy
0021Merge Two Sorted ListsGo61.8%Easy
0022Generate ParenthesesGo71.7%Medium
0023Merge k Sorted ListsGo48.3%Hard
0024Swap Nodes in PairsGo60.3%Medium
0025Reverse Nodes in k-GroupGo53.4%Hard
0026Remove Duplicates from Sorted ArrayGo50.3%Easy
0027Remove ElementGo52.0%Easy
0028Find the Index of the First Occurrence in a StringGo37.4%Medium
0029Divide Two IntegersGo17.4%Medium
0030Substring with Concatenation of All WordsGo30.9%Hard
0031Next PermutationGo37.1%Medium
0032Longest Valid ParenthesesGo32.7%Hard
0033Search in Rotated Sorted ArrayGo38.6%Medium
0034Find First and Last Position of Element in Sorted ArrayGo41.5%Medium
0035Search Insert PositionGo42.0%Easy
0036Valid SudokuGo56.7%Medium
0037Sudoku SolverGo56.6%Hard
0038Count and Say51.1%Medium
0039Combination SumGo67.5%Medium
0040Combination Sum IIGo53.3%Medium
0041First Missing PositiveGo36.5%Hard
0042Trapping Rain WaterGo58.7%Hard
0043Multiply StringsGo38.7%Medium
0044Wildcard Matching26.8%Hard
0045Jump Game IIGo38.5%Medium
0046PermutationsGo74.6%Medium
0047Permutations IIGo56.6%Medium
0048Rotate ImageGo69.8%Medium
0049Group AnagramsGo65.9%Medium
0050Pow(x, n)Go32.8%Medium
0051N-QueensGo62.8%Hard
0052N-Queens IIGo70.8%Hard
0053Maximum SubarrayGo50.0%Medium
0054Spiral MatrixGo43.6%Medium
0055Jump GameGo38.4%Medium
0056Merge IntervalsGo45.9%Medium
0057Insert IntervalGo37.9%Medium
0058Length of Last WordGo40.3%Easy
0059Spiral Matrix IIGo66.5%Medium
0060Permutation SequenceGo43.7%Hard
0061Rotate ListGo35.7%Medium
0062Unique PathsGo62.2%Medium
0063Unique Paths IIGo39.1%Medium
0064Minimum Path SumGo60.6%Medium
0065Valid NumberGo18.6%Hard
0066Plus OneGo43.3%Easy
0067Add BinaryGo51.3%Easy
0068Text Justification36.6%Hard
0069Sqrt(x)Go37.0%Easy
0070Climbing StairsGo51.7%Easy
0071Simplify PathGo39.2%Medium
0072Edit Distance52.6%Hard
0073Set Matrix ZeroesGo49.9%Medium
0074Search a 2D MatrixGo46.7%Medium
0075Sort ColorsGo57.1%Medium
0076Minimum Window SubstringGo40.0%Hard
0077CombinationsGo66.0%Medium
0078SubsetsGo73.7%Medium
0079Word SearchGo39.8%Medium
0080Remove Duplicates from Sorted Array IIGo51.5%Medium
0081Search in Rotated Sorted Array IIGo35.7%Medium
0082Remove Duplicates from Sorted List IIGo45.4%Medium
0083Remove Duplicates from Sorted ListGo49.8%Easy
0084Largest Rectangle in HistogramGo42.1%Hard
0085Maximal Rectangle44.1%Hard
0086Partition ListGo51.3%Medium
0087Scramble String36.1%Hard
0088Merge Sorted ArrayGo45.7%Easy
0089Gray CodeGo56.4%Medium
0090Subsets IIGo55.2%Medium
0091Decode WaysGo32.2%Medium
0092Reverse Linked List IIGo45.3%Medium
0093Restore IP AddressesGo43.3%Medium
0094Binary Tree Inorder TraversalGo72.9%Easy
0095Unique Binary Search Trees IIGo51.4%Medium
0096Unique Binary Search TreesGo59.2%Medium
0097Interleaving StringGo37.1%Medium
0098Validate Binary Search TreeGo31.7%Medium
0099Recover Binary Search TreeGo50.2%Medium
0100Same TreeGo56.3%Easy
0101Symmetric TreeGo52.8%Easy
0102Binary Tree Level Order TraversalGo63.2%Medium
0103Binary Tree Zigzag Level Order TraversalGo55.0%Medium
0104Maximum Depth of Binary TreeGo73.0%Easy
0105Construct Binary Tree from Preorder and Inorder TraversalGo60.6%Medium
0106Construct Binary Tree from Inorder and Postorder TraversalGo57.3%Medium
0107Binary Tree Level Order Traversal IIGo60.2%Medium
0108Convert Sorted Array to Binary Search TreeGo68.9%Easy
0109Convert Sorted List to Binary Search TreeGo57.2%Medium
0110Balanced Binary TreeGo48.1%Easy
0111Minimum Depth of Binary TreeGo43.5%Easy
0112Path SumGo47.6%Easy
0113Path Sum IIGo56.5%Medium
0114Flatten Binary Tree to Linked ListGo61.0%Medium
0115Distinct SubsequencesGo43.7%Hard
0116Populating Next Right Pointers in Each NodeGo59.3%Medium
0117Populating Next Right Pointers in Each Node II49.6%Medium
0118Pascal's TriangleGo68.9%Easy
0119Pascal's Triangle IIGo59.5%Easy
0120TriangleGo53.8%Medium
0121Best Time to Buy and Sell StockGo54.5%Easy
0122Best Time to Buy and Sell Stock IIGo63.2%Medium
0123Best Time to Buy and Sell Stock III44.8%Hard
0124Binary Tree Maximum Path SumGo38.4%Hard
0125Valid PalindromeGo43.5%Easy
0126Word Ladder IIGo27.6%Hard
0127Word LadderGo36.6%Hard
0128Longest Consecutive SequenceGo49.0%Medium
0129Sum Root to Leaf NumbersGo58.6%Medium
0130Surrounded RegionsGo35.8%Medium
0131Palindrome PartitioningGo62.3%Medium
0132Palindrome Partitioning II33.6%Hard
0133Clone Graph50.5%Medium
0134Gas Station45.0%Medium
0135CandyGo40.7%Hard
0136Single NumberGo70.0%Easy
0137Single Number IIGo57.7%Medium
0138Copy List with Random PointerGo50.4%Medium
0139Word Break45.4%Medium
0140Word Break II44.3%Hard
0141Linked List CycleGo46.8%Easy
0142Linked List Cycle IIGo46.2%Medium
0143Reorder ListGo50.9%Medium
0144Binary Tree Preorder TraversalGo64.5%Easy
0145Binary Tree Postorder TraversalGo66.5%Easy
0146LRU CacheGo40.5%Medium
0147Insertion Sort ListGo50.1%Medium
0148Sort ListGo54.0%Medium
0149Max Points on a Line21.7%Hard
0150Evaluate Reverse Polish NotationGo44.1%Medium
0151Reverse Words in a StringGo30.2%Medium
0152Maximum Product SubarrayGo34.9%Medium
0153Find Minimum in Rotated Sorted ArrayGo48.4%Medium
0154Find Minimum in Rotated Sorted Array IIGo43.4%Hard
0155Min StackGo51.7%Medium
0156Binary Tree Upside Down61.5%Medium
0157Read N Characters Given Read440.7%Easy
0158Read N Characters Given read4 II - Call Multiple Times41.4%Hard
0159Longest Substring with At Most Two Distinct Characters53.5%Medium
0160Intersection of Two Linked ListsGo53.1%Easy
0161One Edit Distance34.1%Medium
0162Find Peak ElementGo46.2%Medium
0163Missing Ranges31.9%Easy
0164Maximum GapGo42.6%Hard
0165Compare Version Numbers35.3%Medium
0166Fraction to Recurring Decimal24.0%Medium
0167Two Sum II - Input Array Is SortedGo60.0%Medium
0168Excel Sheet Column TitleGo34.7%Easy
0169Majority ElementGo63.8%Easy
0170Two Sum III - Data structure design37.3%Easy
0171Excel Sheet Column NumberGo61.3%Easy
0172Factorial Trailing ZeroesGo41.6%Medium
0173Binary Search Tree IteratorGo69.0%Medium
0174Dungeon GameGo37.2%Hard
0175Combine Two Tables72.8%Easy
0176Second Highest Salary36.4%Medium
0177Nth Highest Salary37.3%Medium
0178Rank Scores59.7%Medium
0179Largest NumberGo33.9%Medium
0180Consecutive Numbers46.7%Medium
0181Employees Earning More Than Their Managers68.4%Easy
0182Duplicate Emails70.5%Easy
0183Customers Who Never Order67.6%Easy
0184Department Highest Salary49.5%Medium
0185Department Top Three Salaries49.9%Hard
0186Reverse Words in a String II52.3%Medium
0187Repeated DNA SequencesGo46.1%Medium
0188Best Time to Buy and Sell Stock IV37.8%Hard
0189Rotate ArrayGo39.2%Medium
0190Reverse BitsGo51.9%Easy
0191Number of 1 BitsGo64.5%Easy
0192Word Frequency25.6%Medium
0193Valid Phone Numbers26.0%Easy
0194Transpose File25.3%Medium
0195Tenth Line32.9%Easy
0196Delete Duplicate Emails58.3%Easy
0197Rising Temperature44.4%Easy
0198House RobberGo48.6%Medium
0199Binary Tree Right Side ViewGo61.1%Medium
0200Number of IslandsGo56.1%Medium
0201Bitwise AND of Numbers RangeGo42.2%Medium
0202Happy NumberGo54.3%Easy
0203Remove Linked List ElementsGo44.7%Easy
0204Count PrimesGo33.1%Medium
0205Isomorphic StringsGo42.5%Easy
0206Reverse Linked ListGo72.3%Easy
0207Course ScheduleGo45.3%Medium
0208Implement Trie (Prefix Tree)Go60.7%Medium
0209Minimum Size Subarray SumGo44.4%Medium
0210Course Schedule IIGo47.9%Medium
0211Design Add and Search Words Data StructureGo43.2%Medium
0212Word Search IIGo37.0%Hard
0213House Robber IIGo40.6%Medium
0214Shortest Palindrome32.2%Hard
0215Kth Largest Element in an ArrayGo65.7%Medium
0216Combination Sum IIIGo67.0%Medium
0217Contains DuplicateGo61.2%Easy
0218The Skyline ProblemGo41.5%Hard
0219Contains Duplicate IIGo40.9%Easy
0220Contains Duplicate IIIGo21.8%Hard
0221Maximal Square44.4%Medium
0222Count Complete Tree NodesGo57.4%Medium
0223Rectangle AreaGo40.8%Medium
0224Basic CalculatorGo41.1%Hard
0225Implement Stack using QueuesGo57.4%Easy
0226Invert Binary TreeGo73.1%Easy
0227Basic Calculator IIGo42.2%Medium
0228Summary RangesGo46.8%Easy
0229Majority Element IIGo44.0%Medium
0230Kth Smallest Element in a BSTGo69.2%Medium
0231Power of TwoGo45.6%Easy
0232Implement Queue using StacksGo61.0%Easy
0233Number of Digit One34.2%Hard
0234Palindrome Linked ListGo49.4%Easy
0235Lowest Common Ancestor of a Binary Search TreeGo60.1%Medium
0236Lowest Common Ancestor of a Binary TreeGo57.9%Medium
0237Delete Node in a Linked ListGo75.1%Medium
0238Product of Array Except Self64.7%Medium
0239Sliding Window MaximumGo46.6%Hard
0240Search a 2D Matrix IIGo50.5%Medium
0241Different Ways to Add Parentheses63.1%Medium
0242Valid AnagramGo62.7%Easy
0243Shortest Word Distance64.9%Easy
0244Shortest Word Distance II60.7%Medium
0245Shortest Word Distance III57.5%Medium
0246Strobogrammatic Number47.6%Easy
0247Strobogrammatic Number II51.4%Medium
0248Strobogrammatic Number III41.7%Hard
0249Group Shifted Strings64.2%Medium
0250Count Univalue Subtrees55.2%Medium
0251Flatten 2D Vector48.9%Medium
0252Meeting Rooms57.0%Easy
0253Meeting Rooms II50.4%Medium
0254Factor Combinations48.8%Medium
0255Verify Preorder Sequence in Binary Search Tree48.0%Medium
0256Paint House60.5%Medium
0257Binary Tree PathsGo60.5%Easy
0258Add DigitsGo63.3%Easy
02593Sum Smaller50.7%Medium
0260Single Number IIIGo67.4%Medium
0261Graph Valid Tree46.8%Medium
0262Trips and Users38.4%Hard
0263Ugly NumberGo41.7%Easy
0264Ugly Number IIGo46.1%Medium
0265Paint House II52.2%Hard
0266Palindrome Permutation65.8%Easy
0267Palindrome Permutation II40.4%Medium
0268Missing NumberGo61.5%Easy
0269Alien Dictionary35.2%Hard
0270Closest Binary Search Tree Value54.5%Easy
0271Encode and Decode Strings41.3%Medium
0272Closest Binary Search Tree Value II58.2%Hard
0273Integer to English Words29.9%Hard
0274H-IndexGo38.1%Medium
0275H-Index IIGo37.4%Medium
0276Paint Fence44.0%Medium
0277Find the Celebrity46.7%Medium
0278First Bad VersionGo42.9%Easy
0279Perfect SquaresGo52.2%Medium
0280Wiggle Sort66.3%Medium
0281Zigzag Iterator62.3%Medium
0282Expression Add Operators39.2%Hard
0283Move ZeroesGo61.3%Easy
0284Peeking IteratorGo58.2%Medium
0285Inorder Successor in BST48.3%Medium
0286Walls and Gates60.2%Medium
0287Find the Duplicate NumberGo59.1%Medium
0288Unique Word Abbreviation25.2%Medium
0289Game of Life66.6%Medium
0290Word PatternGo40.4%Easy
0291Word Pattern II46.9%Medium
0292Nim Game55.8%Easy
0293Flip Game63.0%Easy
0294Flip Game II51.7%Medium
0295Find Median from Data Stream51.1%Hard
0296Best Meeting Point59.6%Hard
0297Serialize and Deserialize Binary TreeGo54.9%Hard
0298Binary Tree Longest Consecutive Sequence52.5%Medium
0299Bulls and CowsGo48.5%Medium
0300Longest Increasing SubsequenceGo51.5%Medium
0301Remove Invalid ParenthesesGo47.1%Hard
0302Smallest Rectangle Enclosing Black Pixels58.2%Hard
0303Range Sum Query - ImmutableGo57.9%Easy
0304Range Sum Query 2D - ImmutableGo52.1%Medium
0305Number of Islands II39.5%Hard
0306Additive NumberGo30.9%Medium
0307Range Sum Query - MutableGo40.7%Medium
0308Range Sum Query 2D - Mutable42.2%Hard
0309Best Time to Buy and Sell Stock with CooldownGo54.4%Medium
0310Minimum Height Trees38.5%Medium
0311Sparse Matrix Multiplication67.1%Medium
0312Burst Balloons56.9%Hard
0313Super Ugly Number45.8%Medium
0314Binary Tree Vertical Order Traversal52.0%Medium
0315Count of Smaller Numbers After SelfGo42.8%Hard
0316Remove Duplicate Letters44.5%Medium
0317Shortest Distance from All Buildings43.0%Hard
0318Maximum Product of Word LengthsGo60.1%Medium
0319Bulb SwitcherGo48.0%Medium
0320Generalized Abbreviation57.3%Medium
0321Create Maximum Number28.8%Hard
0322Coin ChangeGo41.5%Medium
0323Number of Connected Components in an Undirected Graph62.0%Medium
0324Wiggle Sort IIGo32.9%Medium
0325Maximum Size Subarray Sum Equals k49.3%Medium
0326Power of ThreeGo45.2%Easy
0327Count of Range SumGo36.0%Hard
0328Odd Even Linked ListGo60.2%Medium
0329Longest Increasing Path in a MatrixGo52.1%Hard
0330Patching Array40.0%Hard
0331Verify Preorder Serialization of a Binary TreeGo44.2%Medium
0332Reconstruct Itinerary40.9%Hard
0333Largest BST Subtree42.3%Medium
0334Increasing Triplet Subsequence42.7%Medium
0335Self Crossing29.3%Hard
0336Palindrome Pairs35.2%Hard
0337House Robber IIIGo53.8%Medium
0338Counting BitsGo75.2%Easy
0339Nested List Weight Sum82.0%Medium
0340Longest Substring with At Most K Distinct Characters47.8%Medium
0341Flatten Nested List IteratorGo61.5%Medium
0342Power of FourGo45.6%Easy
0343Integer BreakGo55.3%Medium
0344Reverse StringGo76.1%Easy
0345Reverse Vowels of a StringGo47.7%Easy
0346Moving Average from Data Stream77.0%Easy
0347Top K Frequent ElementsGo64.8%Medium
0348Design Tic-Tac-Toe57.6%Medium
0349Intersection of Two ArraysGo70.2%Easy
0350Intersection of Two Arrays IIGo55.5%Easy
0351Android Unlock Patterns51.3%Medium
0352Data Stream as Disjoint IntervalsGo51.5%Hard
0353Design Snake Game39.0%Medium
0354Russian Doll EnvelopesGo38.3%Hard
0355Design Twitter36.5%Medium
0356Line Reflection34.6%Medium
0357Count Numbers with Unique DigitsGo51.5%Medium
0358Rearrange String k Distance Apart37.5%Hard
0359Logger Rate Limiter75.5%Easy
0360Sort Transformed Array54.6%Medium
0361Bomb Enemy50.9%Medium
0362Design Hit Counter68.3%Medium
0363Max Sum of Rectangle No Larger Than K44.1%Hard
0364Nested List Weight Sum II67.3%Medium
0365Water and Jug Problem36.5%Medium
0366Find Leaves of Binary Tree80.1%Medium
0367Valid Perfect SquareGo43.3%Easy
0368Largest Divisible SubsetGo41.2%Medium
0369Plus One Linked List60.9%Medium
0370Range Addition70.8%Medium
0371Sum of Two IntegersGo50.7%Medium
0372Super PowGo37.2%Medium
0373Find K Pairs with Smallest SumsGo38.4%Medium
0374Guess Number Higher or LowerGo50.4%Easy
0375Guess Number Higher or Lower II46.3%Medium
0376Wiggle SubsequenceGo48.2%Medium
0377Combination Sum IVGo52.1%Medium
0378Kth Smallest Element in a Sorted MatrixGo61.6%Medium
0379Design Phone Directory50.9%Medium
0380Insert Delete GetRandom O(1)52.0%Medium
0381Insert Delete GetRandom O(1) - Duplicates allowed35.7%Hard
0382Linked List Random NodeGo59.5%Medium
0383Ransom NoteGo57.6%Easy
0384Shuffle an ArrayGo57.6%Medium
0385Mini ParserGo36.5%Medium
0386Lexicographical NumbersGo60.5%Medium
0387First Unique Character in a StringGo58.8%Easy
0388Longest Absolute File Path46.5%Medium
0389Find the DifferenceGo60.4%Easy
0390Elimination GameGo46.6%Medium
0391Perfect RectangleGo32.5%Hard
0392Is SubsequenceGo49.3%Easy
0393UTF-8 ValidationGo45.2%Medium
0394Decode StringGo57.5%Medium
0395Longest Substring with At Least K Repeating CharactersGo44.8%Medium
0396Rotate FunctionGo40.3%Medium
0397Integer ReplacementGo35.1%Medium
0398Random Pick Index62.9%Medium
0399Evaluate DivisionGo59.5%Medium
0400Nth DigitGo34.0%Medium
0401Binary WatchGo51.4%Easy
0402Remove K DigitsGo30.5%Medium
0403Frog Jump43.1%Hard
0404Sum of Left LeavesGo56.2%Easy
0405Convert a Number to HexadecimalGo46.1%Easy
0406Queue Reconstruction by Height72.8%Medium
0407Trapping Rain Water II47.4%Hard
0408Valid Word Abbreviation34.8%Easy
0409Longest PalindromeGo54.6%Easy
0410Split Array Largest SumGo53.2%Hard
0411Minimum Unique Word Abbreviation39.2%Hard
0412Fizz BuzzGo68.6%Easy
0413Arithmetic SlicesGo65.0%Medium
0414Third Maximum NumberGo32.5%Easy
0415Add Strings52.6%Easy
0416Partition Equal Subset SumGo46.7%Medium
0417Pacific Atlantic Water FlowGo53.9%Medium
0418Sentence Screen Fitting35.6%Medium
0419Battleships in a BoardGo74.6%Medium
0420Strong Password Checker14.3%Hard
0421Maximum XOR of Two Numbers in an ArrayGo54.6%Medium
0422Valid Word Square38.8%Easy
0423Reconstruct Original Digits from EnglishGo51.3%Medium
0424Longest Repeating Character ReplacementGo51.4%Medium
0425Word Squares52.6%Hard
0426Convert Binary Search Tree to Sorted Doubly Linked List64.6%Medium
0427Construct Quad Tree66.3%Medium
0428Serialize and Deserialize N-ary Tree65.3%Hard
0429N-ary Tree Level Order TraversalGo70.6%Medium
0430Flatten a Multilevel Doubly Linked List59.4%Medium
0431Encode N-ary Tree to Binary Tree78.6%Hard
0432All O`one Data Structure36.6%Hard
0433Minimum Genetic MutationGo48.1%Medium
0434Number of Segments in a StringGo37.7%Easy
0435Non-overlapping IntervalsGo49.8%Medium
0436Find Right IntervalGo50.3%Medium
0437Path Sum IIIGo48.8%Medium
0438Find All Anagrams in a StringGo48.9%Medium
0439Ternary Expression Parser58.2%Medium
0440K-th Smallest in Lexicographical Order30.7%Hard
0441Arranging CoinsGo46.0%Easy
0442Find All Duplicates in an Array73.3%Medium
0443String Compression48.7%Medium
0444Sequence Reconstruction26.3%Medium
0445Add Two Numbers IIGo59.4%Medium
0446Arithmetic Slices II - Subsequence39.8%Hard
0447Number of BoomerangsGo54.6%Medium
0448Find All Numbers Disappeared in an ArrayGo59.6%Easy
0449Serialize and Deserialize BST56.7%Medium
0450Delete Node in a BST49.9%Medium
0451Sort Characters By FrequencyGo68.5%Medium
0452Minimum Number of Arrows to Burst Balloons53.2%Medium
0453Minimum Moves to Equal Array ElementsGo55.6%Medium
04544Sum IIGo57.3%Medium
0455Assign CookiesGo50.6%Easy
0456132 PatternGo32.4%Medium
0457Circular Array LoopGo32.1%Medium
0458Poor PigsGo65.0%Hard
0459Repeated Substring Pattern43.7%Easy
0460LFU CacheGo40.3%Hard
0461Hamming DistanceGo74.8%Easy
0462Minimum Moves to Equal Array Elements IIGo60.1%Medium
0463Island PerimeterGo69.4%Easy
0464Can I Win29.8%Medium
0465Optimal Account Balancing49.3%Hard
0466Count The Repetitions29.2%Hard
0467Unique Substrings in Wraparound String38.2%Medium
0468Validate IP Address26.5%Medium
0469Convex Polygon38.5%Medium
0470Implement Rand10() Using Rand7()Go46.7%Medium
0471Encode String with Shortest Length50.7%Hard
0472Concatenated Words45.5%Hard
0473Matchsticks to SquareGo40.5%Medium
0474Ones and ZeroesGo46.7%Medium
0475HeatersGo36.0%Medium
0476Number ComplementGo67.1%Easy
0477Total Hamming DistanceGo52.2%Medium
0478Generate Random Point in a CircleGo39.6%Medium
0479Largest Palindrome Product31.6%Hard
0480Sliding Window MedianGo41.4%Hard
0481Magical String50.4%Medium
0482License Key Formatting43.2%Easy
0483Smallest Good BaseGo38.4%Hard
0484Find Permutation67.0%Medium
0485Max Consecutive OnesGo56.0%Easy
0486Predict the Winner50.8%Medium
0487Max Consecutive Ones II49.2%Medium
0488Zuma GameGo34.9%Hard
0489Robot Room Cleaner76.5%Hard
0490The Maze55.4%Medium
0491Increasing SubsequencesGo52.0%Medium
0492Construct the RectangleGo53.6%Easy
0493Reverse PairsGo30.8%Hard
0494Target SumGo45.6%Medium
0495Teemo AttackingGo57.0%Easy
0496Next Greater Element IGo71.3%Easy
0497Random Point in Non-overlapping RectanglesGo39.3%Medium
0498Diagonal TraverseGo58.0%Medium
0499The Maze III46.9%Hard
0500Keyboard RowGo69.0%Easy
0501Find Mode in Binary Search Tree48.5%Easy
0502IPO44.9%Hard
0503Next Greater Element IIGo63.0%Medium
0504Base 7Go47.9%Easy
0505The Maze II52.4%Medium
0506Relative RanksGo58.8%Easy
0507Perfect NumberGo37.7%Easy
0508Most Frequent Subtree SumGo64.2%Medium
0509Fibonacci NumberGo69.2%Easy
0510Inorder Successor in BST II61.1%Medium
0511Game Play Analysis I78.8%Easy
0512Game Play Analysis II54.1%Easy
0513Find Bottom Left Tree ValueGo66.3%Medium
0514Freedom Trail46.8%Hard
0515Find Largest Value in Each Tree RowGo64.6%Medium
0516Longest Palindromic Subsequence60.6%Medium
0517Super Washing Machines39.7%Hard
0518Coin Change IIGo59.7%Medium
0519Random Flip MatrixGo39.6%Medium
0520Detect CapitalGo55.6%Easy
0521Longest Uncommon Subsequence I60.3%Easy
0522Longest Uncommon Subsequence II40.4%Medium
0523Continuous Subarray SumGo27.7%Medium
0524Longest Word in Dictionary through DeletingGo51.2%Medium
0525Contiguous ArrayGo46.8%Medium
0526Beautiful ArrangementGo64.6%Medium
0527Word Abbreviation60.3%Hard
0528Random Pick with WeightGo46.1%Medium
0529MinesweeperGo65.5%Medium
0530Minimum Absolute Difference in BSTGo56.7%Easy
0531Lonely Pixel I62.0%Medium
0532K-diff Pairs in an ArrayGo40.7%Medium
0533Lonely Pixel II48.4%Medium
0534Game Play Analysis III82.5%Medium
0535Encode and Decode TinyURLGo85.7%Medium
0536Construct Binary Tree from String56.1%Medium
0537Complex Number MultiplicationGo71.3%Medium
0538Convert BST to Greater TreeGo67.3%Medium
0539Minimum Time Difference56.3%Medium
0540Single Element in a Sorted ArrayGo58.5%Medium
0541Reverse String IIGo50.5%Easy
054201 MatrixGo44.1%Medium
0543Diameter of Binary TreeGo55.9%Easy
0544Output Contest Matches76.7%Medium
0545Boundary of Binary Tree44.2%Medium
0546Remove Boxes47.6%Hard
0547Number of ProvincesGo63.2%Medium
0548Split Array with Equal Sum50.1%Hard
0549Binary Tree Longest Consecutive Sequence II49.5%Medium
0550Game Play Analysis IV44.1%Medium
0551Student Attendance Record IGo48.0%Easy
0552Student Attendance Record II41.1%Hard
0553Optimal Division59.7%Medium
0554Brick WallGo53.1%Medium
0555Split Concatenated Strings43.5%Medium
0556Next Greater Element III34.1%Medium
0557Reverse Words in a String IIIGo81.5%Easy
0558Logical OR of Two Binary Grids Represented as Quad-Trees48.2%Medium
0559Maximum Depth of N-ary TreeGo71.6%Easy
0560Subarray Sum Equals KGo44.0%Medium
0561Array PartitionGo76.5%Easy
0562Longest Line of Consecutive One in Matrix50.0%Medium
0563Binary Tree TiltGo59.3%Easy
0564Find the Closest Palindrome21.9%Hard
0565Array Nesting56.5%Medium
0566Reshape the MatrixGo62.7%Easy
0567Permutation in StringGo43.8%Medium
0568Maximum Vacation Days44.8%Hard
0569Median Employee Salary68.3%Hard
0570Managers with at Least 5 Direct Reports67.1%Medium
0571Find Median Given Frequency of Numbers44.7%Hard
0572Subtree of Another TreeGo45.9%Easy
0573Squirrel Simulation55.0%Medium
0574Winning Candidate59.7%Medium
0575Distribute CandiesGo66.1%Easy
0576Out of Boundary PathsGo44.3%Medium
0577Employee Bonus75.3%Easy
0578Get Highest Answer Rate Question41.7%Medium
0579Find Cumulative Salary of an Employee45.0%Hard
0580Count Student Number in Departments58.2%Medium
0581Shortest Unsorted Continuous SubarrayGo36.2%Medium
0582Kill Process68.4%Medium
0583Delete Operation for Two StringsGo59.2%Medium
0584Find Customer Referee76.0%Easy
0585Investments in 201653.5%Medium
0586Customer Placing the Largest Number of Orders72.5%Easy
0587Erect the Fence43.2%Hard
0588Design In-Memory File System48.8%Hard
0589N-ary Tree Preorder TraversalGo76.3%Easy
0590N-ary Tree Postorder Traversal77.1%Easy
0591Tag Validator37.0%Hard
0592Fraction Addition and Subtraction52.1%Medium
0593Valid Square44.1%Medium
0594Longest Harmonious SubsequenceGo53.1%Easy
0595Big Countries73.8%Easy
0596Classes More Than 5 Students46.5%Easy
0597Friend Requests I: Overall Acceptance Rate42.9%Easy
0598Range Addition IIGo55.0%Easy
0599Minimum Index Sum of Two ListsGo52.7%Easy
0600Non-negative Integers without Consecutive Ones39.0%Hard
0601Human Traffic of Stadium50.6%Hard
0602Friend Requests II: Who Has the Most Friends61.3%Medium
0603Consecutive Available Seats68.2%Easy
0604Design Compressed String Iterator39.4%Easy
0605Can Place FlowersGo33.0%Easy
0606Construct String from Binary Tree63.5%Easy
0607Sales Person72.1%Easy
0608Tree Node74.9%Medium
0609Find Duplicate File in SystemGo67.8%Medium
0610Triangle Judgement71.1%Easy
0611Valid Triangle NumberGo50.3%Medium
0612Shortest Distance in a Plane63.5%Medium
0613Shortest Distance in a Line81.5%Easy
0614Second Degree Follower36.9%Medium
0615Average Salary: Departments VS Company57.3%Hard
0616Add Bold Tag in String48.6%Medium
0617Merge Two Binary TreesGo78.5%Easy
0618Students Report By Geography64.2%Hard
0619Biggest Single Number48.7%Easy
0620Not Boring Movies73.3%Easy
0621Task Scheduler55.6%Medium
0622Design Circular QueueGo51.8%Medium
0623Add One Row to TreeGo59.4%Medium
0624Maximum Distance in Arrays41.7%Medium
0625Minimum Factorization33.4%Medium
0626Exchange Seats70.6%Medium
0627Swap Salary82.8%Easy
0628Maximum Product of Three NumbersGo46.4%Easy
0629K Inverse Pairs Array43.0%Hard
0630Course Schedule IIIGo40.2%Hard
0631Design Excel Sum Formula43.3%Hard
0632Smallest Range Covering Elements from K ListsGo60.4%Hard
0633Sum of Square NumbersGo34.7%Medium
0634Find the Derangement of An Array41.8%Medium
0635Design Log Storage System62.7%Medium
0636Exclusive Time of FunctionsGo61.0%Medium
0637Average of Levels in Binary TreeGo71.6%Easy
0638Shopping OffersGo54.3%Medium
0639Decode Ways II30.4%Hard
0640Solve the Equation43.3%Medium
0641Design Circular Deque57.6%Medium
0642Design Search Autocomplete System48.7%Hard
0643Maximum Average Subarray IGo43.8%Easy
0644Maximum Average Subarray II35.7%Hard
0645Set MismatchGo41.4%Easy
0646Maximum Length of Pair Chain56.4%Medium
0647Palindromic SubstringsGo66.3%Medium
0648Replace WordsGo62.7%Medium
0649Dota2 Senate40.4%Medium
06502 Keys Keyboard53.1%Medium
06514 Keys Keyboard54.5%Medium
0652Find Duplicate Subtrees56.5%Medium
0653Two Sum IV - Input is a BSTGo60.9%Easy
0654Maximum Binary Tree84.4%Medium
0655Print Binary Tree61.3%Medium
0656Coin Path31.6%Hard
0657Robot Return to Origin75.3%Easy
0658Find K Closest ElementsGo46.7%Medium
0659Split Array into Consecutive Subsequences50.6%Medium
0660Remove 956.8%Hard
0661Image SmootherGo55.0%Easy
0662Maximum Width of Binary TreeGo40.6%Medium
0663Equal Tree Partition41.4%Medium
0664Strange Printer46.8%Hard
0665Non-decreasing ArrayGo24.1%Medium
0666Path Sum IV59.1%Medium
0667Beautiful Arrangement IIGo59.7%Medium
0668Kth Smallest Number in Multiplication TableGo51.5%Hard
0669Trim a Binary Search TreeGo66.3%Medium
0670Maximum Swap47.8%Medium
0671Second Minimum Node In a Binary Tree44.0%Easy
0672Bulb Switcher II50.9%Medium
0673Number of Longest Increasing Subsequence42.1%Medium
0674Longest Continuous Increasing SubsequenceGo49.0%Easy
0675Cut Off Trees for Golf Event34.3%Hard
0676Implement Magic DictionaryGo56.9%Medium
0677Map Sum PairsGo57.0%Medium
0678Valid Parenthesis String33.9%Medium
067924 Game49.1%Hard
0680Valid Palindrome II39.3%Easy
0681Next Closest Time46.4%Medium
0682Baseball GameGo73.6%Easy
0683K Empty Slots36.9%Hard
0684Redundant ConnectionGo62.0%Medium
0685Redundant Connection IIGo34.1%Hard
0686Repeated String Match34.0%Medium
0687Longest Univalue Path40.1%Medium
0688Knight Probability in Chessboard52.0%Medium
0689Maximum Sum of 3 Non-Overlapping Subarrays48.8%Hard
0690Employee ImportanceGo65.1%Medium
0691Stickers to Spell Word46.3%Hard
0692Top K Frequent WordsGo55.2%Medium
0693Binary Number with Alternating BitsGo61.2%Easy
0694Number of Distinct Islands60.6%Medium
0695Max Area of IslandGo71.6%Medium
0696Count Binary SubstringsGo65.5%Easy
0697Degree of an ArrayGo55.8%Easy
0698Partition to K Equal Sum Subsets41.1%Medium
0699Falling SquaresGo44.4%Hard
0700Search in a Binary Search TreeGo77.1%Easy
0701Insert into a Binary Search TreeGo74.6%Medium
0702Search in a Sorted Array of Unknown Size71.4%Medium
0703Kth Largest Element in a StreamGo55.5%Easy
0704Binary SearchGo55.1%Easy
0705Design HashSetGo66.0%Easy
0706Design HashMapGo65.1%Easy
0707Design Linked ListGo27.5%Medium
0708Insert into a Sorted Circular Linked List34.5%Medium
0709To Lower CaseGo81.9%Easy
0710Random Pick with BlacklistGo33.6%Hard
0711Number of Distinct Islands II51.8%Hard
0712Minimum ASCII Delete Sum for Two Strings62.2%Medium
0713Subarray Product Less Than KGo45.0%Medium
0714Best Time to Buy and Sell Stock with Transaction FeeGo64.2%Medium
0715Range ModuleGo44.6%Hard
0716Max Stack45.3%Hard
07171-bit and 2-bit CharactersGo46.0%Easy
0718Maximum Length of Repeated SubarrayGo51.6%Medium
0719Find K-th Smallest Pair DistanceGo36.3%Hard
0720Longest Word in DictionaryGo51.8%Medium
0721Accounts MergeGo56.3%Medium
0722Remove Comments38.0%Medium
0723Candy Crush76.3%Medium
0724Find Pivot IndexGo53.3%Easy
0725Split Linked List in PartsGo57.2%Medium
0726Number of AtomsGo52.2%Hard
0727Minimum Window Subsequence42.8%Hard
0728Self Dividing NumbersGo77.5%Easy
0729My Calendar IGo57.2%Medium
0730Count Different Palindromic Subsequences44.4%Hard
0731My Calendar II54.7%Medium
0732My Calendar IIIGo71.6%Hard
0733Flood FillGo60.3%Easy
0734Sentence Similarity43.1%Easy
0735Asteroid CollisionGo44.4%Medium
0736Parse Lisp Expression51.6%Hard
0737Sentence Similarity II48.7%Medium
0738Monotone Increasing Digits47.0%Medium
0739Daily TemperaturesGo66.5%Medium
0740Delete and Earn57.4%Medium
0741Cherry Pickup36.3%Hard
0742Closest Leaf in a Binary Tree45.8%Medium
0743Network Delay Time51.4%Medium
0744Find Smallest Letter Greater Than TargetGo44.6%Easy
0745Prefix and Suffix SearchGo41.3%Hard
0746Min Cost Climbing StairsGo62.3%Easy
0747Largest Number At Least Twice of OthersGo46.3%Easy
0748Shortest Completing WordGo59.1%Easy
0749Contain Virus50.8%Hard
0750Number Of Corner Rectangles67.5%Medium
0751IP to CIDR54.7%Medium
0752Open the LockGo55.5%Medium
0753Cracking the SafeGo55.4%Hard
0754Reach a Number42.5%Medium
0755Pour Water46.1%Medium
0756Pyramid Transition MatrixGo53.3%Medium
0757Set Intersection Size At Least Two43.8%Hard
0758Bold Words in String50.6%Medium
0759Employee Free Time71.7%Hard
0760Find Anagram Mappings82.8%Easy
0761Special Binary String60.3%Hard
0762Prime Number of Set Bits in Binary RepresentationGo67.6%Easy
0763Partition LabelsGo79.8%Medium
0764Largest Plus Sign48.4%Medium
0765Couples Holding HandsGo56.9%Hard
0766Toeplitz MatrixGo68.1%Easy
0767Reorganize StringGo52.7%Medium
0768Max Chunks To Make Sorted II52.7%Hard
0769Max Chunks To Make Sorted58.2%Medium
0770Basic Calculator IV56.0%Hard
0771Jewels and StonesGo88.0%Easy
0772Basic Calculator III48.4%Hard
0773Sliding Puzzle63.7%Hard
0774Minimize Max Distance to Gas Station51.4%Hard
0775Global and Local InversionsGo43.8%Medium
0776Split BST58.7%Medium
0777Swap Adjacent in LR String37.1%Medium
0778Swim in Rising WaterGo59.6%Hard
0779K-th Symbol in Grammar40.7%Medium
0780Reaching Points32.3%Hard
0781Rabbits in ForestGo55.3%Medium
0782Transform to Chessboard51.9%Hard
0783Minimum Distance Between BST NodesGo56.8%Easy
0784Letter Case PermutationGo73.4%Medium
0785Is Graph Bipartite?Go52.6%Medium
0786K-th Smallest Prime FractionGo50.6%Medium
0787Cheapest Flights Within K Stops35.9%Medium
0788Rotated Digits56.9%Medium
0789Escape The Ghosts60.6%Medium
0790Domino and Tromino Tiling48.4%Medium
0791Custom Sort StringGo69.4%Medium
0792Number of Matching SubsequencesGo51.9%Medium
0793Preimage Size of Factorial Zeroes FunctionGo42.7%Hard
0794Valid Tic-Tac-Toe StateGo35.2%Medium
0795Number of Subarrays with Bounded MaximumGo52.7%Medium
0796Rotate String54.0%Easy
0797All Paths From Source to Target81.4%Medium
0798Smallest Rotation with Highest Score49.6%Hard
0799Champagne Tower51.2%Medium
0800Similar RGB Color66.4%Easy
0801Minimum Swaps To Make Sequences Increasing39.2%Hard
0802Find Eventual Safe StatesGo54.9%Medium
0803Bricks Falling When HitGo34.3%Hard
0804Unique Morse Code Words82.6%Easy
0805Split Array With Same Average25.9%Hard
0806Number of Lines To Write String66.1%Easy
0807Max Increase to Keep City SkylineGo85.9%Medium
0808Soup Servings43.1%Medium
0809Expressive Words46.3%Medium
0810Chalkboard XOR GameGo55.1%Hard
0811Subdomain Visit CountGo75.1%Medium
0812Largest Triangle AreaGo60.1%Easy
0813Largest Sum of Averages52.9%Medium
0814Binary Tree Pruning72.6%Medium
0815Bus RoutesGo45.7%Hard
0816Ambiguous CoordinatesGo56.0%Medium
0817Linked List ComponentsGo58.1%Medium
0818Race Car43.6%Hard
0819Most Common WordGo45.0%Easy
0820Short Encoding of WordsGo60.7%Medium
0821Shortest Distance to a CharacterGo71.3%Easy
0822Card Flipping Game45.4%Medium
0823Binary Trees With FactorsGo50.0%Medium
0824Goat Latin67.8%Easy
0825Friends Of Appropriate AgesGo46.3%Medium
0826Most Profit Assigning WorkGo44.3%Medium
0827Making A Large Island44.7%Hard
0828Count Unique Characters of All Substrings of a Given StringGo51.5%Hard
0829Consecutive Numbers Sum41.5%Hard
0830Positions of Large GroupsGo51.7%Easy
0831Masking Personal Information46.8%Medium
0832Flipping an ImageGo80.3%Easy
0833Find And Replace in String54.1%Medium
0834Sum of Distances in TreeGo54.1%Hard
0835Image Overlap61.0%Medium
0836Rectangle OverlapGo43.3%Easy
0837New 21 Game36.2%Medium
0838Push DominoesGo57.0%Medium
0839Similar String GroupsGo47.5%Hard
0840Magic Squares In Grid38.5%Medium
0841Keys and RoomsGo70.1%Medium
0842Split Array into Fibonacci SequenceGo38.2%Medium
0843Guess the Word42.0%Hard
0844Backspace String CompareGo48.0%Easy
0845Longest Mountain in ArrayGo40.1%Medium
0846Hand of StraightsGo56.5%Medium
0847Shortest Path Visiting All Nodes61.3%Hard
0848Shifting Letters45.4%Medium
0849Maximize Distance to Closest Person47.6%Medium
0850Rectangle Area IIGo53.7%Hard
0851Loud and RichGo58.1%Medium
0852Peak Index in a Mountain ArrayGo69.5%Medium
0853Car FleetGo50.0%Medium
0854K-Similar Strings40.0%Hard
0855Exam Room43.5%Medium
0856Score of ParenthesesGo65.1%Medium
0857Minimum Cost to Hire K Workers52.0%Hard
0858Mirror Reflection63.3%Medium
0859Buddy StringsGo29.0%Easy
0860Lemonade Change52.8%Easy
0861Score After Flipping Matrix75.1%Medium
0862Shortest Subarray with Sum at Least KGo26.1%Hard
0863All Nodes Distance K in Binary TreeGo62.1%Medium
0864Shortest Path to Get All KeysGo45.3%Hard
0865Smallest Subtree with all the Deepest Nodes68.5%Medium
0866Prime Palindrome25.8%Medium
0867Transpose MatrixGo63.4%Easy
0868Binary Gap61.9%Easy
0869Reordered Power of 2Go64.1%Medium
0870Advantage ShuffleGo51.6%Medium
0871Minimum Number of Refueling Stops39.9%Hard
0872Leaf-Similar TreesGo65.2%Easy
0873Length of Longest Fibonacci Subsequence48.6%Medium
0874Walking Robot SimulationGo38.3%Medium
0875Koko Eating BananasGo52.4%Medium
0876Middle of the Linked ListGo73.7%Easy
0877Stone GameGo69.7%Medium
0878Nth Magical NumberGo35.7%Hard
0879Profitable Schemes40.5%Hard
0880Decoded String at IndexGo28.3%Medium
0881Boats to Save PeopleGo52.7%Medium
0882Reachable Nodes In Subdivided Graph50.3%Hard
0883Projection Area of 3D Shapes70.7%Easy
0884Uncommon Words from Two SentencesGo65.9%Easy
0885Spiral Matrix IIIGo73.0%Medium
0886Possible Bipartition48.4%Medium
0887Super Egg DropGo27.2%Hard
0888Fair Candy SwapGo60.5%Easy
0889Construct Binary Tree from Preorder and Postorder Traversal70.8%Medium
0890Find and Replace PatternGo77.9%Medium
0891Sum of Subsequence WidthsGo36.4%Hard
0892Surface Area of 3D ShapesGo63.0%Easy
0893Groups of Special-Equivalent Strings70.8%Medium
0894All Possible Full Binary Trees80.0%Medium
0895Maximum Frequency StackGo66.8%Hard
0896Monotonic ArrayGo58.2%Easy
0897Increasing Order Search TreeGo78.4%Easy
0898Bitwise ORs of SubarraysGo36.8%Medium
0899Orderly Queue59.0%Hard
0900RLE Iterator59.5%Medium
0901Online Stock SpanGo63.9%Medium
0902Numbers At Most N Given Digit Set41.4%Hard
0903Valid Permutations for DI Sequence57.7%Hard
0904Fruit Into BasketsGo42.6%Medium
0905Sort Array By Parity75.7%Easy
0906Super Palindromes39.2%Hard
0907Sum of Subarray MinimumsGo34.3%Medium
0908Smallest Range I67.6%Easy
0909Snakes and LaddersGo40.8%Medium
0910Smallest Range IIGo34.4%Medium
0911Online ElectionGo52.1%Medium
0912Sort an Array60.0%Medium
0913Cat and Mouse35.3%Hard
0914X of a Kind in a Deck of CardsGo32.2%Easy
0915Partition Array into Disjoint Intervals48.6%Medium
0916Word SubsetsGo54.1%Medium
0917Reverse Only Letters61.4%Easy
0918Maximum Sum Circular SubarrayGo38.1%Medium
0919Complete Binary Tree Inserter64.9%Medium
0920Number of Music PlaylistsGo50.6%Hard
0921Minimum Add to Make Parentheses ValidGo76.4%Medium
0922Sort Array By Parity IIGo70.7%Easy
09233Sum With MultiplicityGo45.4%Medium
0924Minimize Malware SpreadGo42.1%Hard
0925Long Pressed NameGo33.8%Easy
0926Flip String to Monotone Increasing59.6%Medium
0927Three Equal PartsGo39.6%Hard
0928Minimize Malware Spread IIGo42.6%Hard
0929Unique Email Addresses67.2%Easy
0930Binary Subarrays With SumGo50.9%Medium
0931Minimum Falling Path Sum68.4%Medium
0932Beautiful Array65.1%Medium
0933Number of Recent CallsGo73.2%Easy
0934Shortest Bridge53.9%Medium
0935Knight Dialer49.9%Medium
0936Stamping The Sequence63.3%Hard
0937Reorder Data in Log Files56.4%Medium
0938Range Sum of BSTGo85.3%Easy
0939Minimum Area Rectangle53.2%Medium
0940Distinct Subsequences II44.4%Hard
0941Valid Mountain Array33.5%Easy
0942DI String MatchGo76.6%Easy
0943Find the Shortest Superstring45.0%Hard
0944Delete Columns to Make Sorted69.7%Easy
0945Minimum Increment to Make Array Unique49.8%Medium
0946Validate Stack SequencesGo67.6%Medium
0947Most Stones Removed with Same Row or ColumnGo57.0%Medium
0948Bag of Tokens52.0%Medium
0949Largest Time for Given DigitsGo35.2%Medium
0950Reveal Cards In Increasing Order77.6%Medium
0951Flip Equivalent Binary Trees66.8%Medium
0952Largest Component Size by Common FactorGo40.3%Hard
0953Verifying an Alien DictionaryGo52.7%Easy
0954Array of Doubled Pairs39.1%Medium
0955Delete Columns to Make Sorted II34.6%Medium
0956Tallest Billboard40.0%Hard
0957Prison Cells After N Days39.2%Medium
0958Check Completeness of a Binary TreeGo53.8%Medium
0959Regions Cut By SlashesGo69.1%Medium
0960Delete Columns to Make Sorted III57.1%Hard
0961N-Repeated Element in Size 2N ArrayGo75.8%Easy
0962Maximum Width Ramp48.9%Medium
0963Minimum Area Rectangle II54.7%Medium
0964Least Operators to Express Number47.8%Hard
0965Univalued Binary Tree69.2%Easy
0966Vowel SpellcheckerGo51.5%Medium
0967Numbers With Same Consecutive Differences57.0%Medium
0968Binary Tree CamerasGo46.8%Hard
0969Pancake SortingGo70.0%Medium
0970Powerful IntegersGo43.6%Medium
0971Flip Binary Tree To Match Preorder TraversalGo49.9%Medium
0972Equal Rational Numbers43.0%Hard
0973K Closest Points to OriginGo65.9%Medium
0974Subarray Sums Divisible by K53.6%Medium
0975Odd Even Jump38.9%Hard
0976Largest Perimeter TriangleGo54.8%Easy
0977Squares of a Sorted ArrayGo71.9%Easy
0978Longest Turbulent SubarrayGo47.4%Medium
0979Distribute Coins in Binary TreeGo72.0%Medium
0980Unique Paths IIIGo79.6%Hard
0981Time Based Key-Value StoreGo53.6%Medium
0982Triples with Bitwise AND Equal To Zero57.6%Hard
0983Minimum Cost For Tickets64.4%Medium
0984String Without AAA or BBBGo42.9%Medium
0985Sum of Even Numbers After QueriesGo68.3%Medium
0986Interval List IntersectionsGo71.4%Medium
0987Vertical Order Traversal of a Binary TreeGo44.6%Hard
0988Smallest String Starting From Leaf49.6%Medium
0989Add to Array-Form of IntegerGo45.5%Easy
0990Satisfiability of Equality EquationsGo50.7%Medium
0991Broken CalculatorGo54.1%Medium
0992Subarrays with K Different IntegersGo54.3%Hard
0993Cousins in Binary TreeGo54.1%Easy
0994Rotting Oranges52.4%Medium
0995Minimum Number of K Consecutive Bit FlipsGo51.1%Hard
0996Number of Squareful ArraysGo49.2%Hard
0997Find the Town JudgeGo49.4%Easy
0998Maximum Binary Tree II66.3%Medium
0999Available Captures for RookGo67.8%Easy
1000Minimum Cost to Merge Stones42.3%Hard
1001Grid Illumination36.2%Hard
1002Find Common CharactersGo68.3%Easy
1003Check If Word Is Valid After SubstitutionsGo58.2%Medium
1004Max Consecutive Ones IIIGo63.5%Medium
1005Maximize Sum Of Array After K NegationsGo51.1%Easy
1006Clumsy FactorialGo54.7%Medium
1007Minimum Domino Rotations For Equal Row52.4%Medium
1008Construct Binary Search Tree from Preorder Traversal80.9%Medium
1009Complement of Base 10 IntegerGo62.0%Easy
1010Pairs of Songs With Total Durations Divisible by 60Go53.0%Medium
1011Capacity To Ship Packages Within D DaysGo64.4%Medium
1012Numbers With Repeated Digits40.4%Hard
1013Partition Array Into Three Parts With Equal Sum43.5%Easy
1014Best Sightseeing Pair59.5%Medium
1015Smallest Integer Divisible by K47.1%Medium
1016Binary String With Substrings Representing 1 To N57.6%Medium
1017Convert to Base -2Go60.9%Medium
1018Binary Prefix Divisible By 5Go47.4%Easy
1019Next Greater Node In Linked ListGo59.8%Medium
1020Number of EnclavesGo64.8%Medium
1021Remove Outermost ParenthesesGo80.1%Easy
1022Sum of Root To Leaf Binary NumbersGo73.8%Easy
1023Camelcase Matching60.1%Medium
1024Video Stitching50.5%Medium
1025Divisor GameGo67.1%Easy
1026Maximum Difference Between Node and AncestorGo73.4%Medium
1027Longest Arithmetic Subsequence47.2%Medium
1028Recover a Tree From Preorder TraversalGo72.8%Hard
1029Two City Scheduling64.5%Medium
1030Matrix Cells in Distance OrderGo69.3%Easy
1031Maximum Sum of Two Non-Overlapping Subarrays59.4%Medium
1032Stream of Characters51.5%Hard
1033Moving Stones Until Consecutive45.6%Medium
1034Coloring A BorderGo48.9%Medium
1035Uncrossed Lines58.7%Medium
1036Escape a Large Maze34.2%Hard
1037Valid BoomerangGo37.5%Easy
1038Binary Search Tree to Greater Sum TreeGo85.3%Medium
1039Minimum Score Triangulation of Polygon54.5%Medium
1040Moving Stones Until Consecutive IIGo55.6%Medium
1041Robot Bounded In Circle55.3%Medium
1042Flower Planting With No Adjacent50.4%Medium
1043Partition Array for Maximum Sum71.2%Medium
1044Longest Duplicate Substring30.7%Hard
1045Customers Who Bought All Products67.6%Medium
1046Last Stone Weight64.7%Easy
1047Remove All Adjacent Duplicates In StringGo70.5%Easy
1048Longest String ChainGo59.2%Medium
1049Last Stone Weight IIGo52.4%Medium
1050Actors and Directors Who Cooperated At Least Three Times72.4%Easy
1051Height CheckerGo75.0%Easy
1052Grumpy Bookstore OwnerGo57.0%Medium
1053Previous Permutation With One Swap50.8%Medium
1054Distant BarcodesGo45.7%Medium
1055Shortest Way to Form String59.1%Medium
1056Confusing Number46.1%Easy
1057Campus Bikes57.7%Medium
1058Minimize Rounding Error to Meet Target44.9%Medium
1059All Paths from Source Lead to Destination40.5%Medium
1060Missing Element in Sorted Array54.6%Medium
1061Lexicographically Smallest Equivalent String70.4%Medium
1062Longest Repeating Substring59.1%Medium
1063Number of Valid Subarrays74.1%Hard
1064Fixed Point63.6%Easy
1065Index Pairs of a String63.0%Easy
1066Campus Bikes II54.5%Medium
1067Digit Count in Range44.6%Hard
1068Product Sales Analysis I80.4%Easy
1069Product Sales Analysis II82.0%Easy
1070Product Sales Analysis III49.2%Medium
1071Greatest Common Divisor of Strings51.0%Easy
1072Flip Columns For Maximum Number of Equal Rows63.1%Medium
1073Adding Two Negabinary NumbersGo36.4%Medium
1074Number of Submatrices That Sum to TargetGo69.8%Hard
1075Project Employees I67.2%Easy
1076Project Employees II51.0%Easy
1077Project Employees III78.7%Medium
1078Occurrences After BigramGo63.9%Easy
1079Letter Tile PossibilitiesGo76.1%Medium
1080Insufficient Nodes in Root to Leaf Paths52.8%Medium
1081Smallest Subsequence of Distinct Characters57.6%Medium
1082Sales Analysis I75.4%Easy
1083Sales Analysis II50.5%Easy
1084Sales Analysis III52.2%Easy
1085Sum of Digits in the Minimum Number75.9%Easy
1086High Five75.2%Easy
1087Brace Expansion66.1%Medium
1088Confusing Number II46.5%Hard
1089Duplicate ZerosGo51.5%Easy
1090Largest Values From Labels60.9%Medium
1091Shortest Path in Binary MatrixGo44.5%Medium
1092Shortest Common Supersequence57.8%Hard
1093Statistics from a Large SampleGo44.7%Medium
1094Car Pooling57.4%Medium
1095Find in Mountain Array35.8%Hard
1096Brace Expansion II63.5%Hard
1097Game Play Analysis V55.2%Hard
1098Unpopular Books45.2%Medium
1099Two Sum Less Than K60.4%Easy
1100Find K-Length Substrings With No Repeated Characters74.7%Medium
1101The Earliest Moment When Everyone Become Friends65.0%Medium
1102Path With Maximum Minimum Value53.3%Medium
1103Distribute Candies to People63.9%Easy
1104Path In Zigzag Labelled Binary TreeGo74.9%Medium
1105Filling Bookcase ShelvesGo58.9%Medium
1106Parsing A Boolean Expression58.5%Hard
1107New Users Daily Count45.9%Medium
1108Defanging an IP AddressGo89.3%Easy
1109Corporate Flight Bookings60.3%Medium
1110Delete Nodes And Return ForestGo69.4%Medium
1111Maximum Nesting Depth of Two Valid Parentheses StringsGo73.3%Medium
1112Highest Grade For Each Student73.8%Medium
1113Reported Posts66.1%Easy
1114Print in Order68.1%Easy
1115Print FooBar Alternately61.7%Medium
1116Print Zero Even Odd60.1%Medium
1117Building H2O55.7%Medium
1118Number of Days in a Month56.7%Easy
1119Remove Vowels from a String90.7%Easy
1120Maximum Average Subtree65.5%Medium
1121Divide Array Into Increasing Sequences60.0%Hard
1122Relative Sort ArrayGo68.4%Easy
1123Lowest Common Ancestor of Deepest LeavesGo70.6%Medium
1124Longest Well-Performing Interval34.6%Medium
1125Smallest Sufficient Team47.1%Hard
1126Active Businesses67.9%Medium
1127User Purchase Platform51.2%Hard
1128Number of Equivalent Domino PairsGo46.9%Easy
1129Shortest Path with Alternating Colors42.9%Medium
1130Minimum Cost Tree From Leaf Values68.5%Medium
1131Maximum of Absolute Value Expression49.5%Medium
1132Reported Posts II33.6%Medium
1133Largest Unique Number67.5%Easy
1134Armstrong Number78.1%Easy
1135Connecting Cities With Minimum Cost61.1%Medium
1136Parallel Courses62.0%Medium
1137N-th Tribonacci NumberGo63.3%Easy
1138Alphabet Board Path52.3%Medium
1139Largest 1-Bordered Square50.0%Medium
1140Stone Game II64.9%Medium
1141User Activity for the Past 30 Days I50.2%Easy
1142User Activity for the Past 30 Days II36.0%Easy
1143Longest Common SubsequenceGo58.8%Medium
1144Decrease Elements To Make Array Zigzag47.0%Medium
1145Binary Tree Coloring GameGo51.4%Medium
1146Snapshot Array37.3%Medium
1147Longest Chunked Palindrome Decomposition60.0%Hard
1148Article Views I77.0%Easy
1149Article Views II47.6%Medium
1150Check If a Number Is Majority Element in a Sorted Array56.8%Easy
1151Minimum Swaps to Group All 1's Together60.9%Medium
1152Analyze User Website Visit Pattern43.4%Medium
1153String Transforms Into Another String35.3%Hard
1154Day of the YearGo50.3%Easy
1155Number of Dice Rolls With Target Sum53.6%Medium
1156Swap For Longest Repeated Character Substring45.5%Medium
1157Online Majority Element In SubarrayGo42.0%Hard
1158Market Analysis I63.9%Medium
1159Market Analysis II58.7%Hard
1160Find Words That Can Be Formed by CharactersGo67.8%Easy
1161Maximum Level Sum of a Binary Tree66.2%Medium
1162As Far from Land as Possible48.5%Medium
1163Last Substring in Lexicographical Order35.1%Hard
1164Product Price at a Given Date68.4%Medium
1165Single-Row Keyboard85.7%Easy
1166Design File System61.8%Medium
1167Minimum Cost to Connect Sticks67.7%Medium
1168Optimize Water Distribution in a Village64.4%Hard
1169Invalid Transactions31.0%Medium
1170Compare Strings by Frequency of the Smallest CharacterGo61.3%Medium
1171Remove Zero Sum Consecutive Nodes from Linked ListGo42.9%Medium
1172Dinner Plate Stacks33.7%Hard
1173Immediate Food Delivery I83.4%Easy
1174Immediate Food Delivery II63.9%Medium
1175Prime ArrangementsGo53.5%Easy
1176Diet Plan Performance52.4%Easy
1177Can Make Palindrome from Substring37.8%Medium
1178Number of Valid Words for Each PuzzleGo46.6%Hard
1179Reformat Department Table82.7%Easy
1180Count Substrings with Only One Distinct Letter78.9%Easy
1181Before and After Puzzle45.1%Medium
1182Shortest Distance to Target Color55.5%Medium
1183Maximum Number of Ones60.9%Hard
1184Distance Between Bus StopsGo54.1%Easy
1185Day of the WeekGo57.8%Easy
1186Maximum Subarray Sum with One Deletion41.2%Medium
1187Make Array Strictly Increasing45.3%Hard
1188Design Bounded Blocking Queue72.9%Medium
1189Maximum Number of BalloonsGo62.2%Easy
1190Reverse Substrings Between Each Pair of ParenthesesGo65.9%Medium
1191K-Concatenation Maximum Sum24.0%Medium
1192Critical Connections in a Network54.5%Hard
1193Monthly Transactions I67.2%Medium
1194Tournament Winners51.7%Hard
1195Fizz Buzz Multithreaded72.5%Medium
1196How Many Apples Can You Put into the Basket67.0%Easy
1197Minimum Knight Moves39.8%Medium
1198Find Smallest Common Element in All Rows76.0%Medium
1199Minimum Time to Build Blocks40.7%Hard
1200Minimum Absolute DifferenceGo69.8%Easy
1201Ugly Number IIIGo28.5%Medium
1202Smallest String With SwapsGo57.5%Medium
1203Sort Items by Groups Respecting DependenciesGo50.6%Hard
1204Last Person to Fit in the Bus74.1%Medium
1205Monthly Transactions II43.8%Medium
1206Design Skiplist60.5%Hard
1207Unique Number of OccurrencesGo70.9%Easy
1208Get Equal Substrings Within BudgetGo47.6%Medium
1209Remove All Adjacent Duplicates in String IIGo56.0%Medium
1210Minimum Moves to Reach Target with Rotations48.9%Hard
1211Queries Quality and Percentage71.9%Easy
1212Team Scores in Football Tournament57.6%Medium
1213Intersection of Three Sorted Arrays80.0%Easy
1214Two Sum BSTs66.2%Medium
1215Stepping Numbers45.8%Medium
1216Valid Palindrome III50.1%Hard
1217Minimum Cost to Move Chips to The Same PositionGo72.2%Easy
1218Longest Arithmetic Subsequence of Given Difference51.8%Medium
1219Path with Maximum Gold64.4%Medium
1220Count Vowels Permutation60.7%Hard
1221Split a String in Balanced StringsGo84.7%Easy
1222Queens That Can Attack the King71.7%Medium
1223Dice Roll Simulation48.4%Hard
1224Maximum Equal Frequency36.8%Hard
1225Report Contiguous Dates63.4%Hard
1226The Dining Philosophers56.6%Medium
1227Airplane Seat Assignment Probability64.9%Medium
1228Missing Number In Arithmetic Progression51.4%Easy
1229Meeting Scheduler55.4%Medium
1230Toss Strange Coins53.4%Medium
1231Divide Chocolate56.9%Hard
1232Check If It Is a Straight LineGo41.2%Easy
1233Remove Sub-Folders from the Filesystem65.4%Medium
1234Replace the Substring for Balanced StringGo36.8%Medium
1235Maximum Profit in Job SchedulingGo51.1%Hard
1236Web Crawler66.3%Medium
1237Find Positive Integer Solution for a Given Equation69.3%Medium
1238Circular Permutation in Binary Representation68.8%Medium
1239Maximum Length of a Concatenated String with Unique CharactersGo50.6%Medium
1240Tiling a Rectangle with the Fewest Squares54.0%Hard
1241Number of Comments per Post68.0%Easy
1242Web Crawler Multithreaded49.0%Medium
1243Array Transformation50.7%Easy
1244Design A Leaderboard68.8%Medium
1245Tree Diameter61.7%Medium
1246Palindrome Removal45.9%Hard
1247Minimum Swaps to Make Strings Equal63.7%Medium
1248Count Number of Nice Subarrays59.5%Medium
1249Minimum Remove to Make Valid ParenthesesGo65.6%Medium
1250Check If It Is a Good Array58.7%Hard
1251Average Selling Price83.2%Easy
1252Cells with Odd Values in a MatrixGo78.6%Easy
1253Reconstruct a 2-Row Binary Matrix43.8%Medium
1254Number of Closed IslandsGo64.2%Medium
1255Maximum Score Words Formed by Letters72.8%Hard
1256Encode Number69.9%Medium
1257Smallest Common Region64.1%Medium
1258Synonymous Sentences56.4%Medium
1259Handshakes That Don't Cross56.2%Hard
1260Shift 2D GridGo68.0%Easy
1261Find Elements in a Contaminated Binary Tree76.1%Medium
1262Greatest Sum Divisible by Three50.9%Medium
1263Minimum Moves to Move a Box to Their Target Location49.0%Hard
1264Page Recommendations67.8%Medium
1265Print Immutable Linked List in Reverse94.3%Medium
1266Minimum Time Visiting All PointsGo79.1%Easy
1267Count Servers that Communicate59.1%Medium
1268Search Suggestions SystemGo66.7%Medium
1269Number of Ways to Stay in the Same Place After Some Steps43.6%Hard
1270All People Report to the Given Manager88.0%Medium
1271Hexspeak57.0%Easy
1272Remove Interval63.3%Medium
1273Delete Tree Nodes61.2%Medium
1274Number of Ships in a Rectangle69.3%Hard
1275Find Winner on a Tic Tac Toe GameGo54.3%Easy
1276Number of Burgers with No Waste of Ingredients50.6%Medium
1277Count Square Submatrices with All Ones74.4%Medium
1278Palindrome Partitioning III60.8%Hard
1279Traffic Light Controlled Intersection74.5%Easy
1280Students and Examinations74.5%Easy
1281Subtract the Product and Sum of Digits of an IntegerGo86.7%Easy
1282Group the People Given the Group Size They Belong To85.7%Medium
1283Find the Smallest Divisor Given a ThresholdGo55.3%Medium
1284Minimum Number of Flips to Convert Binary Matrix to Zero Matrix72.1%Hard
1285Find the Start and End Number of Continuous Ranges88.2%Medium
1286Iterator for Combination73.5%Medium
1287Element Appearing More Than 25% In Sorted ArrayGo59.5%Easy
1288Remove Covered Intervals57.3%Medium
1289Minimum Falling Path Sum II59.6%Hard
1290Convert Binary Number in a Linked List to IntegerGo82.6%Easy
1291Sequential Digits61.2%Medium
1292Maximum Side Length of a Square with Sum Less than or Equal to Threshold53.1%Medium
1293Shortest Path in a Grid with Obstacles EliminationGo43.6%Hard
1294Weather Type in Each Country67.9%Easy
1295Find Numbers with Even Number of DigitsGo76.9%Easy
1296Divide Array in Sets of K Consecutive NumbersGo56.6%Medium
1297Maximum Number of Occurrences of a Substring52.1%Medium
1298Maximum Candies You Can Get from Boxes61.1%Hard
1299Replace Elements with Greatest Element on Right SideGo74.7%Easy
1300Sum of Mutated Array Closest to TargetGo43.1%Medium
1301Number of Paths with Max Score38.7%Hard
1302Deepest Leaves SumGo87.0%Medium
1303Find the Team Size90.8%Easy
1304Find N Unique Integers Sum up to ZeroGo77.1%Easy
1305All Elements in Two Binary Search TreesGo79.8%Medium
1306Jump Game IIIGo63.0%Medium
1307Verbal Arithmetic Puzzle34.5%Hard
1308Running Total for Different Genders88.3%Medium
1309Decrypt String from Alphabet to Integer Mapping79.4%Easy
1310XOR Queries of a SubarrayGo72.1%Medium
1311Get Watched Videos by Your Friends45.9%Medium
1312Minimum Insertion Steps to Make a String Palindrome65.5%Hard
1313Decompress Run-Length Encoded ListGo85.9%Easy
1314Matrix Block Sum75.4%Medium
1315Sum of Nodes with Even-Valued Grandparent85.6%Medium
1316Distinct Echo Substrings49.8%Hard
1317Convert Integer to the Sum of Two No-Zero IntegersGo56.2%Easy
1318Minimum Flips to Make a OR b Equal to c66.0%Medium
1319Number of Operations to Make Network ConnectedGo58.3%Medium
1320Minimum Distance to Type a Word Using Two Fingers59.8%Hard
1321Restaurant Growth72.2%Medium
1322Ads Performance60.9%Easy
1323Maximum 69 Number79.1%Easy
1324Print Words Vertically60.0%Medium
1325Delete Leaves With a Given Value74.8%Medium
1326Minimum Number of Taps to Open to Water a Garden47.8%Hard
1327List the Products Ordered in a Period77.1%Easy
1328Break a Palindrome53.4%Medium
1329Sort the Matrix DiagonallyGo83.6%Medium
1330Reverse Subarray To Maximize Array Value39.9%Hard
1331Rank Transform of an Array59.0%Easy
1332Remove Palindromic SubsequencesGo76.1%Easy
1333Filter Restaurants by Vegan-Friendly, Price and Distance59.4%Medium
1334Find the City With the Smallest Number of Neighbors at a Threshold Distance52.9%Medium
1335Minimum Difficulty of a Job Schedule58.8%Hard
1336Number of Transactions per Visit51.4%Hard
1337The K Weakest Rows in a MatrixGo73.1%Easy
1338Reduce Array Size to The Half69.8%Medium
1339Maximum Product of Splitted Binary Tree43.3%Medium
1340Jump Game V62.6%Hard
1341Movie Rating58.6%Medium
1342Number of Steps to Reduce a Number to Zero85.6%Easy
1343Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold67.7%Medium
1344Angle Between Hands of a Clock63.4%Medium
1345Jump Game IV44.1%Hard
1346Check If N and Its Double Exist36.1%Easy
1347Minimum Number of Steps to Make Two Strings Anagram77.2%Medium
1348Tweet Counts Per Frequency43.5%Medium
1349Maximum Students Taking Exam48.0%Hard
1350Students With Invalid Departments90.5%Easy
1351Count Negative Numbers in a Sorted Matrix75.3%Easy
1352Product of the Last K Numbers49.4%Medium
1353Maximum Number of Events That Can Be AttendedGo32.9%Medium
1354Construct Target Array With Multiple Sums36.3%Hard
1355Activity Participants74.4%Medium
1356Sort Integers by The Number of 1 Bits72.0%Easy
1357Apply Discount Every n Orders69.9%Medium
1358Number of Substrings Containing All Three Characters62.9%Medium
1359Count All Valid Pickup and Delivery Options63.0%Hard
1360Number of Days Between Two Dates47.5%Easy
1361Validate Binary Tree Nodes40.4%Medium
1362Closest Divisors59.8%Medium
1363Largest Multiple of Three33.5%Hard
1364Number of Trusted Contacts of a Customer79.0%Medium
1365How Many Numbers Are Smaller Than the Current Number86.6%Easy
1366Rank Teams by Votes58.6%Medium
1367Linked List in Binary Tree43.4%Medium
1368Minimum Cost to Make at Least One Valid Path in a Grid61.3%Hard
1369Get the Second Most Recent Activity69.6%Hard
1370Increasing Decreasing String77.5%Easy
1371Find the Longest Substring Containing Vowels in Even Counts63.0%Medium
1372Longest ZigZag Path in a Binary Tree59.6%Medium
1373Maximum Sum BST in Binary Tree39.2%Hard
1374Generate a String With Characters That Have Odd Counts77.5%Easy
1375Number of Times Binary String Is Prefix-Aligned65.9%Medium
1376Time Needed to Inform All Employees58.4%Medium
1377Frog Position After T Seconds36.1%Hard
1378Replace Employee ID With The Unique Identifier91.4%Easy
1379Find a Corresponding Node of a Binary Tree in a Clone of That Tree87.1%Easy
1380Lucky Numbers in a MatrixGo70.5%Easy
1381Design a Stack With Increment Operation77.4%Medium
1382Balance a Binary Search Tree80.7%Medium
1383Maximum Performance of a TeamGo49.0%Hard
1384Total Sales Amount by Year67.6%Hard
1385Find the Distance Value Between Two ArraysGo65.3%Easy
1386Cinema Seat Allocation40.9%Medium
1387Sort Integers by The Power Value69.9%Medium
1388Pizza With 3n Slices50.1%Hard
1389Create Target Array in the Given OrderGo85.8%Easy
1390Four Divisors41.2%Medium
1391Check if There is a Valid Path in a Grid47.0%Medium
1392Longest Happy Prefix45.0%Hard
1393Capital Gain/Loss91.1%Medium
1394Find Lucky Integer in an Array63.5%Easy
1395Count Number of Teams68.3%Medium
1396Design Underground SystemGo73.7%Medium
1397Find All Good Strings42.1%Hard
1398Customers Who Bought Products A and B but Not C77.7%Medium
1399Count Largest Group67.2%Easy
1400Construct K Palindrome Strings63.3%Medium
1401Circle and Rectangle Overlapping44.2%Medium
1402Reducing Dishes72.0%Hard
1403Minimum Subsequence in Non-Increasing Order72.2%Easy
1404Number of Steps to Reduce a Number in Binary Representation to One52.0%Medium
1405Longest Happy String57.4%Medium
1406Stone Game III59.7%Hard
1407Top Travellers68.7%Easy
1408String Matching in an Array63.9%Easy
1409Queries on a Permutation With Key83.3%Medium
1410HTML Entity Parser52.1%Medium
1411Number of Ways to Paint N × 3 Grid62.3%Hard
1412Find the Quiet Students in All Exams63.0%Hard
1413Minimum Value to Get Positive Step by Step Sum68.4%Easy
1414Find the Minimum Number of Fibonacci Numbers Whose Sum Is K65.4%Medium
1415The k-th Lexicographical String of All Happy Strings of Length n72.0%Medium
1416Restore The Array38.4%Hard
1417Reformat The String55.8%Easy
1418Display Table of Food Orders in a Restaurant73.7%Medium
1419Minimum Number of Frogs Croaking49.9%Medium
1420Build Array Where You Can Find The Maximum Exactly K Comparisons63.6%Hard
1421NPV Queries84.1%Easy
1422Maximum Score After Splitting a String57.8%Easy
1423Maximum Points You Can Obtain from CardsGo52.3%Medium
1424Diagonal Traverse II50.3%Medium
1425Constrained Subsequence Sum47.4%Hard
1426Counting Elements59.5%Easy
1427Perform String Shifts54.2%Easy
1428Leftmost Column with at Least a One53.0%Medium
1429First Unique Number52.7%Medium
1430Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree46.1%Medium
1431Kids With the Greatest Number of Candies87.5%Easy
1432Max Difference You Can Get From Changing an Integer43.0%Medium
1433Check If a String Can Break Another String68.8%Medium
1434Number of Ways to Wear Different Hats to Each Other42.8%Hard
1435Create a Session Bar Chart78.3%Easy
1436Destination City77.6%Easy
1437Check If All 1's Are at Least Length K Places AwayGo59.2%Easy
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitGo48.0%Medium
1439Find the Kth Smallest Sum of a Matrix With Sorted RowsGo61.4%Hard
1440Evaluate Boolean Expression76.5%Medium
1441Build an Array With Stack Operations71.3%Medium
1442Count Triplets That Can Form Two Arrays of Equal XORGo75.6%Medium
1443Minimum Time to Collect All Apples in a Tree56.0%Medium
1444Number of Ways of Cutting a Pizza58.6%Hard
1445Apples & Oranges91.3%Medium
1446Consecutive CharactersGo61.7%Easy
1447Simplified Fractions64.6%Medium
1448Count Good Nodes in Binary Tree74.6%Medium
1449Form Largest Integer With Digits That Add up to Target47.1%Hard
1450Number of Students Doing Homework at a Given Time75.9%Easy
1451Rearrange Words in a Sentence62.5%Medium
1452People Whose List of Favorite Companies Is Not a Subset of Another List56.8%Medium
1453Maximum Number of Darts Inside of a Circular Dartboard36.8%Hard
1454Active Users38.4%Medium
1455Check If a Word Occurs As a Prefix of Any Word in a SentenceGo64.2%Easy
1456Maximum Number of Vowels in a Substring of Given Length57.9%Medium
1457Pseudo-Palindromic Paths in a Binary Tree68.1%Medium
1458Max Dot Product of Two Subsequences46.2%Hard
1459Rectangles Area70.0%Medium
1460Make Two Arrays Equal by Reversing Subarrays72.2%Easy
1461Check If a String Contains All Binary Codes of Size KGo56.8%Medium
1462Course Schedule IV48.9%Medium
1463Cherry Pickup IIGo70.2%Hard
1464Maximum Product of Two Elements in an ArrayGo79.2%Easy
1465Maximum Area of a Piece of Cake After Horizontal and Vertical CutsGo40.8%Medium
1466Reorder Routes to Make All Paths Lead to the City Zero61.8%Medium
1467Probability of a Two Boxes Having The Same Number of Distinct Balls60.8%Hard
1468Calculate Salaries81.9%Medium
1469Find All The Lonely Nodes81.7%Easy
1470Shuffle the ArrayGo88.5%Easy
1471The k Strongest Values in an Array60.1%Medium
1472Design Browser History76.1%Medium
1473Paint House III62.0%Hard
1474Delete N Nodes After M Nodes of a Linked List73.8%Easy
1475Final Prices With a Special Discount in a Shop75.4%Easy
1476Subrectangle Queries88.5%Medium
1477Find Two Non-overlapping Sub-arrays Each With Target Sum37.0%Medium
1478Allocate Mailboxes55.3%Hard
1479Sales by Day of the Week82.4%Hard
1480Running Sum of 1d ArrayGo89.8%Easy
1481Least Number of Unique Integers after K Removals57.2%Medium
1482Minimum Number of Days to Make m BouquetsGo56.7%Medium
1483Kth Ancestor of a Tree Node33.8%Hard
1484Group Sold Products By The Date84.1%Easy
1485Clone Binary Tree With Random Pointer79.5%Medium
1486XOR Operation in an ArrayGo84.2%Easy
1487Making File Names Unique35.6%Medium
1488Avoid Flood in The City26.1%Medium
1489Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree53.4%Hard
1490Clone N-ary Tree83.6%Medium
1491Average Salary Excluding the Minimum and Maximum Salary63.1%Easy
1492The kth Factor of n62.3%Medium
1493Longest Subarray of 1's After Deleting One Element60.1%Medium
1494Parallel Courses II31.1%Hard
1495Friendly Movies Streamed Last Month49.8%Easy
1496Path Crossing55.8%Easy
1497Check If Array Pairs Are Divisible by k39.8%Medium
1498Number of Subsequences That Satisfy the Given Sum Condition38.4%Medium
1499Max Value of Equation46.5%Hard
1500Design a File Sharing System44.9%Medium
1501Countries You Can Safely Invest In58.3%Medium
1502Can Make Arithmetic Progression From Sequence68.3%Easy
1503Last Moment Before All Ants Fall Out of a Plank55.2%Medium
1504Count Submatrices With All Ones57.9%Medium
1505Minimum Possible Integer After at Most K Adjacent Swaps On Digits38.1%Hard
1506Find Root of N-Ary Tree78.1%Medium
1507Reformat Date62.4%Easy
1508Range Sum of Sorted Subarray Sums59.4%Medium
1509Minimum Difference Between Largest and Smallest Value in Three Moves54.6%Medium
1510Stone Game IV60.6%Hard
1511Customer Order Frequency73.1%Easy
1512Number of Good PairsGo88.2%Easy
1513Number of Substrings With Only 1s45.2%Medium
1514Path with Maximum Probability48.3%Medium
1515Best Position for a Service Centre38.4%Hard
1516Move Sub-Tree of N-Ary Tree63.9%Hard
1517Find Users With Valid E-Mails57.1%Easy
1518Water BottlesGo60.3%Easy
1519Number of Nodes in the Sub-Tree With the Same Label40.9%Medium
1520Maximum Number of Non-Overlapping Substrings37.9%Hard
1521Find a Value of a Mysterious Function Closest to Target43.6%Hard
1522Diameter of N-Ary Tree73.4%Medium
1523Count Odd Numbers in an Interval Range46.4%Easy
1524Number of Sub-arrays With Odd Sum43.6%Medium
1525Number of Good Ways to Split a String69.5%Medium
1526Minimum Number of Increments on Subarrays to Form a Target Array68.6%Hard
1527Patients With a Condition42.9%Easy
1528Shuffle String85.7%Easy
1529Minimum Suffix Flips72.5%Medium
1530Number of Good Leaf Nodes Pairs60.5%Medium
1531String Compression II50.2%Hard
1532The Most Recent Three Orders71.1%Medium
1533Find the Index of the Large Integer50.7%Medium
1534Count Good Triplets80.8%Easy
1535Find the Winner of an Array Game48.8%Medium
1536Minimum Swaps to Arrange a Binary Grid46.4%Medium
1537Get the Maximum Score39.3%Hard
1538Guess the Majority in a Hidden Array63.0%Medium
1539Kth Missing Positive NumberGo55.9%Easy
1540Can Convert String in K Moves33.1%Medium
1541Minimum Insertions to Balance a Parentheses String49.9%Medium
1542Find Longest Awesome Substring41.6%Hard
1543Fix Product Name Format62.4%Easy
1544Make The String Great57.0%Easy
1545Find Kth Bit in Nth Binary String58.2%Medium
1546Maximum Number of Non-Overlapping Subarrays With Sum Equals Target47.2%Medium
1547Minimum Cost to Cut a Stick56.8%Hard
1548The Most Similar Path in a Graph56.9%Hard
1549The Most Recent Orders for Each Product67.9%Medium
1550Three Consecutive Odds63.7%Easy
1551Minimum Operations to Make Array EqualGo81.1%Medium
1552Magnetic Force Between Two Balls56.8%Medium
1553Minimum Number of Days to Eat N Oranges34.4%Hard
1554Strings Differ by One Character43.6%Medium
1555Bank Account Summary53.0%Medium
1556Thousand Separator55.1%Easy
1557Minimum Number of Vertices to Reach All Nodes79.6%Medium
1558Minimum Numbers of Function Calls to Make Target Array64.3%Medium
1559Detect Cycles in 2D Grid48.1%Medium
1560Most Visited Sector in a Circular Track58.4%Easy
1561Maximum Number of Coins You Can Get78.6%Medium
1562Find Latest Group of Size M42.4%Medium
1563Stone Game V40.6%Hard
1564Put Boxes Into the Warehouse I67.1%Medium
1565Unique Orders and Customers Per Month83.6%Easy
1566Detect Pattern of Length M Repeated K or More Times43.6%Easy
1567Maximum Length of Subarray With Positive Product43.7%Medium
1568Minimum Number of Days to Disconnect Island47.1%Hard
1569Number of Ways to Reorder Array to Get Same BST48.2%Hard
1570Dot Product of Two Sparse Vectors90.4%Medium
1571Warehouse Manager90.1%Easy
1572Matrix Diagonal SumGo79.7%Easy
1573Number of Ways to Split a StringGo32.4%Medium
1574Shortest Subarray to be Removed to Make Array Sorted36.5%Medium
1575Count All Possible Routes56.9%Hard
1576Replace All ?'s to Avoid Consecutive Repeating CharactersGo49.2%Easy
1577Number of Ways Where Square of Number Is Equal to Product of Two Numbers39.9%Medium
1578Minimum Time to Make Rope Colorful63.7%Medium
1579Remove Max Number of Edges to Keep Graph Fully TraversableGo52.7%Hard
1580Put Boxes Into the Warehouse II63.5%Medium
1581Customer Who Visited but Did Not Make Any Transactions89.0%Easy
1582Special Positions in a Binary Matrix65.3%Easy
1583Count Unhappy Friends59.8%Medium
1584Min Cost to Connect All Points64.3%Medium
1585Check If String Is Transformable With Substring Sort Operations48.4%Hard
1586Binary Search Tree Iterator II70.8%Medium
1587Bank Account Summary II90.2%Easy
1588Sum of All Odd Length Subarrays83.6%Easy
1589Maximum Sum Obtained of Any Permutation37.0%Medium
1590Make Sum Divisible by P28.1%Medium
1591Strange Printer II58.4%Hard
1592Rearrange Spaces Between Words43.8%Easy
1593Split a String Into the Max Number of Unique Substrings55.1%Medium
1594Maximum Non Negative Product in a Matrix33.1%Medium
1595Minimum Cost to Connect Two Groups of Points46.3%Hard
1596The Most Frequently Ordered Products for Each Customer85.1%Medium
1597Build Binary Expression Tree From Infix Expression62.2%Hard
1598Crawler Log Folder64.3%Easy
1599Maximum Profit of Operating a Centennial Wheel43.7%Medium
1600Throne InheritanceGo63.6%Medium
1601Maximum Number of Achievable Transfer Requests51.3%Hard
1602Find Nearest Right Node in Binary Tree75.3%Medium
1603Design Parking SystemGo88.1%Easy
1604Alert Using Same Key-Card Three or More Times in a One Hour Period47.4%Medium
1605Find Valid Matrix Given Row and Column Sums78.1%Medium
1606Find Servers That Handled Most Number of Requests42.8%Hard
1607Sellers With No Sales55.3%Easy
1608Special Array With X Elements Greater Than or Equal XGo60.0%Easy
1609Even Odd TreeGo53.6%Medium
1610Maximum Number of Visible Points37.4%Hard
1611Minimum One Bit Operations to Make Integers Zero63.2%Hard
1612Check If Two Expression Trees are Equivalent69.9%Medium
1613Find the Missing IDs75.9%Medium
1614Maximum Nesting Depth of the ParenthesesGo82.7%Easy
1615Maximal Network Rank58.1%Medium
1616Split Two Strings to Make Palindrome31.3%Medium
1617Count Subtrees With Max Distance Between Cities65.9%Hard
1618Maximum Font to Fit a Sentence in a Screen59.1%Medium
1619Mean of Array After Removing Some ElementsGo64.6%Easy
1620Coordinate With Maximum Network Quality37.3%Medium
1621Number of Sets of K Non-Overlapping Line Segments42.3%Medium
1622Fancy Sequence16.1%Hard
1623All Valid Triplets That Can Represent a Country88.0%Easy
1624Largest Substring Between Two Equal CharactersGo59.0%Easy
1625Lexicographically Smallest String After Applying Operations66.0%Medium
1626Best Team With No Conflicts41.1%Medium
1627Graph Connectivity With Threshold45.5%Hard
1628Design an Expression Tree With Evaluate Function82.7%Medium
1629Slowest KeyGo59.4%Easy
1630Arithmetic Subarrays79.9%Medium
1631Path With Minimum EffortGo55.3%Medium
1632Rank Transform of a Matrix41.0%Hard
1633Percentage of Users Attended a Contest68.8%Easy
1634Add Two Polynomials Represented as Linked Lists53.4%Medium
1635Hopper Company Queries I53.0%Hard
1636Sort Array by Increasing FrequencyGo68.6%Easy
1637Widest Vertical Area Between Two Points Containing No Points84.2%Medium
1638Count Substrings That Differ by One Character71.5%Medium
1639Number of Ways to Form a Target String Given a Dictionary42.9%Hard
1640Check Array Formation Through ConcatenationGo56.1%Easy
1641Count Sorted Vowel StringsGo77.3%Medium
1642Furthest Building You Can ReachGo48.3%Medium
1643Kth Smallest Instructions46.3%Hard
1644Lowest Common Ancestor of a Binary Tree II59.3%Medium
1645Hopper Company Queries II38.8%Hard
1646Get Maximum in Generated ArrayGo50.2%Easy
1647Minimum Deletions to Make Character Frequencies UniqueGo59.2%Medium
1648Sell Diminishing-Valued Colored BallsGo30.6%Medium
1649Create Sorted Array through InstructionsGo37.2%Hard
1650Lowest Common Ancestor of a Binary Tree III77.3%Medium
1651Hopper Company Queries III68.0%Hard
1652Defuse the BombGo61.1%Easy
1653Minimum Deletions to Make String BalancedGo58.7%Medium
1654Minimum Jumps to Reach HomeGo28.6%Medium
1655Distribute Repeating IntegersGo39.7%Hard
1656Design an Ordered StreamGo85.3%Easy
1657Determine if Two Strings Are CloseGo54.2%Medium
1658Minimum Operations to Reduce X to ZeroGo37.6%Medium
1659Maximize Grid HappinessGo38.4%Hard
1660Correct a Binary Tree72.5%Medium
1661Average Time of Process per Machine79.4%Easy
1662Check If Two String Arrays are EquivalentGo81.8%Easy
1663Smallest String With A Given Numeric ValueGo67.0%Medium
1664Ways to Make a Fair ArrayGo63.6%Medium
1665Minimum Initial Energy to Finish TasksGo56.2%Hard
1666Change the Root of a Binary Tree69.4%Medium
1667Fix Names in a Table66.8%Easy
1668Maximum Repeating SubstringGo39.6%Easy
1669Merge In Between Linked ListsGo74.5%Medium
1670Design Front Middle Back QueueGo56.4%Medium
1671Minimum Number of Removals to Make Mountain Array42.6%Hard
1672Richest Customer WealthGo88.4%Easy
1673Find the Most Competitive SubsequenceGo49.3%Medium
1674Minimum Moves to Make Array ComplementaryGo38.5%Medium
1675Minimize Deviation in ArrayGo52.1%Hard
1676Lowest Common Ancestor of a Binary Tree IV79.3%Medium
1677Product's Worth Over Invoices39.4%Easy
1678Goal Parser InterpretationGo86.0%Easy
1679Max Number of K-Sum PairsGo57.4%Medium
1680Concatenation of Consecutive Binary NumbersGo57.0%Medium
1681Minimum IncompatibilityGo37.3%Hard
1682Longest Palindromic Subsequence II49.7%Medium
1683Invalid Tweets91.0%Easy
1684Count the Number of Consistent StringsGo81.8%Easy
1685Sum of Absolute Differences in a Sorted ArrayGo65.3%Medium
1686Stone Game VI54.3%Medium
1687Delivering Boxes from Storage to Ports38.2%Hard
1688Count of Matches in TournamentGo83.1%Easy
1689Partitioning Into Minimum Number Of Deci-Binary NumbersGo89.7%Medium
1690Stone Game VIIGo58.7%Medium
1691Maximum Height by Stacking CuboidsGo54.2%Hard
1692Count Ways to Distribute Candies62.0%Hard
1693Daily Leads and Partners90.4%Easy
1694Reformat Phone NumberGo64.7%Easy
1695Maximum Erasure ValueGo57.7%Medium
1696Jump Game VIGo46.3%Medium
1697Checking Existence of Edge Length Limited Paths50.5%Hard
1698Number of Distinct Substrings in a String63.1%Medium
1699Number of Calls Between Two Persons85.8%Medium
1700Number of Students Unable to Eat LunchGo67.7%Easy
1701Average Waiting Time62.3%Medium
1702Maximum Binary String After Change46.1%Medium
1703Minimum Adjacent Swaps for K Consecutive Ones41.3%Hard
1704Determine if String Halves Are AlikeGo77.4%Easy
1705Maximum Number of Eaten ApplesGo37.9%Medium
1706Where Will the Ball Fall65.8%Medium
1707Maximum XOR With an Element From Array44.3%Hard
1708Largest Subarray Length K63.5%Easy
1709Biggest Window Between Visits77.8%Medium
1710Maximum Units on a TruckGo74.0%Easy
1711Count Good Meals29.0%Medium
1712Ways to Split Array Into Three Subarrays32.4%Medium
1713Minimum Operations to Make a Subsequence49.2%Hard
1714Sum Of Special Evenly-Spaced Elements In Array49.8%Hard
1715Count Apples and Oranges77.8%Medium
1716Calculate Money in Leetcode BankGo65.0%Easy
1717Maximum Score From Removing Substrings46.0%Medium
1718Construct the Lexicographically Largest Valid Sequence51.7%Medium
1719Number Of Ways To Reconstruct A Tree42.5%Hard
1720Decode XORed ArrayGo86.0%Easy
1721Swapping Nodes in a Linked ListGo67.8%Medium
1722Minimize Hamming Distance After Swap Operations48.6%Medium
1723Find Minimum Time to Finish All Jobs42.7%Hard
1724Checking Existence of Edge Length Limited Paths II51.3%Hard
1725Number Of Rectangles That Can Form The Largest SquareGo78.7%Easy
1726Tuple with Same Product60.7%Medium
1727Largest Submatrix With Rearrangements60.8%Medium
1728Cat and Mouse II40.5%Hard
1729Find Followers Count71.6%Easy
1730Shortest Path to Get Food54.0%Medium
1731The Number of Employees Which Report to Each Employee51.1%Easy
1732Find the Highest AltitudeGo78.7%Easy
1733Minimum Number of People to Teach41.6%Medium
1734Decode XORed PermutationGo62.2%Medium
1735Count Ways to Make Array With Product49.2%Hard
1736Latest Time by Replacing Hidden DigitsGo42.2%Easy
1737Change Minimum Characters to Satisfy One of Three Conditions35.2%Medium
1738Find Kth Largest XOR Coordinate ValueGo61.6%Medium
1739Building Boxes51.7%Hard
1740Find Distance in a Binary Tree68.7%Medium
1741Find Total Time Spent by Each Employee92.0%Easy
1742Maximum Number of Balls in a BoxGo73.9%Easy
1743Restore the Array From Adjacent Pairs68.7%Medium
1744Can You Eat Your Favorite Candy on Your Favorite Day?Go32.8%Medium
1745Palindrome Partitioning IV46.3%Hard
1746Maximum Subarray Sum After One Operation62.2%Medium
1747Leetflex Banned Accounts68.2%Medium
1748Sum of Unique ElementsGo75.6%Easy
1749Maximum Absolute Sum of Any Subarray58.2%Medium
1750Minimum Length of String After Deleting Similar Ends43.6%Medium
1751Maximum Number of Events That Can Be Attended II55.8%Hard
1752Check if Array Is Sorted and RotatedGo49.2%Easy
1753Maximum Score From Removing Stones66.1%Medium
1754Largest Merge Of Two Strings45.0%Medium
1755Closest Subsequence Sum36.6%Hard
1756Design Most Recently Used Queue79.0%Medium
1757Recyclable and Low Fat Products93.9%Easy
1758Minimum Changes To Make Alternating Binary StringGo58.3%Easy
1759Count Number of Homogenous Substrings47.8%Medium
1760Minimum Limit of Balls in a Bag60.3%Medium
1761Minimum Degree of a Connected Trio in a Graph41.7%Hard
1762Buildings With an Ocean View79.2%Medium
1763Longest Nice SubstringGo61.7%Easy
1764Form Array by Concatenating Subarrays of Another Array52.7%Medium
1765Map of Highest Peak60.3%Medium
1766Tree of Coprimes38.5%Hard
1767Find the Subtasks That Did Not Execute84.7%Hard
1768Merge Strings Alternately75.9%Easy
1769Minimum Number of Operations to Move All Balls to Each Box85.4%Medium
1770Maximum Score from Performing Multiplication Operations36.3%Hard
1771Maximize Palindrome Length From Subsequences35.2%Hard
1772Sort Features by Popularity65.1%Medium
1773Count Items Matching a Rule84.3%Easy
1774Closest Dessert Cost46.7%Medium
1775Equal Sum Arrays With Minimum Number of Operations52.6%Medium
1776Car Fleet II53.3%Hard
1777Product's Price for Each Store85.4%Easy
1778Shortest Path in a Hidden Grid39.7%Medium
1779Find Nearest Point That Has the Same X or Y Coordinate67.2%Easy
1780Check if Number is a Sum of Powers of Three65.3%Medium
1781Sum of Beauty of All Substrings60.4%Medium
1782Count Pairs Of Nodes37.9%Hard
1783Grand Slam Titles88.9%Medium
1784Check if Binary String Has at Most One Segment of Ones40.5%Easy
1785Minimum Elements to Add to Form a Given Sum42.4%Medium
1786Number of Restricted Paths From First to Last Node39.2%Medium
1787Make the XOR of All Segments Equal to Zero39.5%Hard
1788Maximize the Beauty of the Garden66.4%Hard
1789Primary Department for Each Employee80.0%Easy
1790Check if One String Swap Can Make Strings Equal45.6%Easy
1791Find Center of Star GraphGo83.6%Easy
1792Maximum Average Pass Ratio51.9%Medium
1793Maximum Score of a Good Subarray53.2%Hard
1794Count Pairs of Equal Substrings With Minimum Difference65.2%Medium
1795Rearrange Products Table90.4%Easy
1796Second Largest Digit in a String49.0%Easy
1797Design Authentication Manager56.1%Medium
1798Maximum Number of Consecutive Values You Can Make54.1%Medium
1799Maximize Score After N Operations45.7%Hard
1800Maximum Ascending Subarray Sum63.8%Easy
1801Number of Orders in the Backlog47.2%Medium
1802Maximum Value at a Given Index in a Bounded Array31.8%Medium
1803Count Pairs With XOR in a Range46.8%Hard
1804Implement Trie II (Prefix Tree)59.8%Medium
1805Number of Different Integers in a String36.1%Easy
1806Minimum Number of Operations to Reinitialize a Permutation71.3%Medium
1807Evaluate the Bracket Pairs of a String66.7%Medium
1808Maximize Number of Nice Divisors31.2%Hard
1809Ad-Free Sessions60.0%Easy
1810Minimum Path Cost in a Hidden Grid53.8%Medium
1811Find Interview Candidates65.3%Medium
1812Determine Color of a Chessboard Square77.4%Easy
1813Sentence Similarity III33.0%Medium
1814Count Nice Pairs in an Array41.9%Medium
1815Maximum Number of Groups Getting Fresh Donuts40.1%Hard
1816Truncate SentenceGo81.9%Easy
1817Finding the Users Active Minutes80.7%Medium
1818Minimum Absolute Sum DifferenceGo30.1%Medium
1819Number of Different Subsequences GCDs37.9%Hard
1820Maximum Number of Accepted Invitations49.7%Medium
1821Find Customers With Positive Revenue this Year89.4%Easy
1822Sign of the Product of an Array66.3%Easy
1823Find the Winner of the Circular Game77.7%Medium
1824Minimum Sideway Jumps49.8%Medium
1825Finding MK Average35.1%Hard
1826Faulty Sensor49.5%Easy
1827Minimum Operations to Make the Array Increasing78.2%Easy
1828Queries on Number of Points Inside a Circle86.5%Medium
1829Maximum XOR for Each Query77.0%Medium
1830Minimum Number of Operations to Make String Sorted49.2%Hard
1831Maximum Transaction Each Day84.3%Medium
1832Check if the Sentence Is Pangram83.9%Easy
1833Maximum Ice Cream Bars65.5%Medium
1834Single-Threaded CPU41.9%Medium
1835Find XOR Sum of All Pairs Bitwise AND60.0%Hard
1836Remove Duplicates From an Unsorted Linked List69.3%Medium
1837Sum of Digits in Base K76.8%Easy
1838Frequency of the Most Frequent Element38.3%Medium
1839Longest Substring Of All Vowels in Order48.5%Medium
1840Maximum Building Height35.3%Hard
1841League Statistics57.4%Medium
1842Next Palindrome Using Same Digits53.6%Hard
1843Suspicious Bank Accounts48.0%Medium
1844Replace All Digits with Characters79.7%Easy
1845Seat Reservation Manager64.2%Medium
1846Maximum Element After Decreasing and RearrangingGo59.1%Medium
1847Closest Room35.1%Hard
1848Minimum Distance to the Target Element58.6%Easy
1849Splitting a String Into Descending Consecutive Values32.1%Medium
1850Minimum Adjacent Swaps to Reach the Kth Smallest Number72.0%Medium
1851Minimum Interval to Include Each Query47.7%Hard
1852Distinct Numbers in Each Subarray71.5%Medium
1853Convert Date Format88.0%Easy
1854Maximum Population Year59.8%Easy
1855Maximum Distance Between a Pair of Values52.6%Medium
1856Maximum Subarray Min-Product37.7%Medium
1857Largest Color Value in a Directed Graph40.6%Hard
1858Longest Word With All Prefixes66.3%Medium
1859Sorting the Sentence84.4%Easy
1860Incremental Memory Leak71.6%Medium
1861Rotating the Box64.7%Medium
1862Sum of Floored Pairs28.3%Hard
1863Sum of All Subset XOR Totals79.0%Easy
1864Minimum Number of Swaps to Make the Binary String Alternating42.0%Medium
1865Finding Pairs With a Certain Sum50.3%Medium
1866Number of Ways to Rearrange Sticks With K Sticks Visible55.4%Hard
1867Orders With Maximum Quantity Above Average75.9%Medium
1868Product of Two Run-Length Encoded Arrays57.8%Medium
1869Longer Contiguous Segments of Ones than Zeros60.2%Easy
1870Minimum Speed to Arrive on Time37.3%Medium
1871Jump Game VII25.1%Medium
1872Stone Game VIII52.4%Hard
1873Calculate Special Bonus64.7%Easy
1874Minimize Product Sum of Two Arrays90.4%Medium
1875Group Employees of the Same Salary75.6%Medium
1876Substrings of Size Three with Distinct Characters70.2%Easy
1877Minimize Maximum Pair Sum in ArrayGo80.4%Medium
1878Get Biggest Three Rhombus Sums in a Grid46.4%Medium
1879Minimum XOR Sum of Two Arrays44.6%Hard
1880Check if Word Equals Summation of Two Words73.6%Easy
1881Maximum Value after Insertion36.5%Medium
1882Process Tasks Using Servers39.5%Medium
1883Minimum Skips to Arrive at Meeting On Time38.5%Hard
1884Egg Drop With 2 Eggs and N Floors70.3%Medium
1885Count Pairs in Two Arrays59.2%Medium
1886Determine Whether Matrix Can Be Obtained By Rotation55.3%Easy
1887Reduction Operations to Make the Array Elements Equal62.3%Medium
1888Minimum Number of Flips to Make the Binary String Alternating37.8%Medium
1889Minimum Space Wasted From Packaging30.6%Hard
1890The Latest Login in 202081.8%Easy
1891Cutting Ribbons48.1%Medium
1892Page Recommendations II44.8%Hard
1893Check if All the Integers in a Range Are Covered50.8%Easy
1894Find the Student that Will Replace the Chalk43.6%Medium
1895Largest Magic Square51.9%Medium
1896Minimum Cost to Change the Final Value of Expression54.9%Hard
1897Redistribute Characters to Make All Strings Equal60.0%Easy
1898Maximum Number of Removable Characters39.2%Medium
1899Merge Triplets to Form Target Triplet64.3%Medium
1900The Earliest and Latest Rounds Where Players Compete51.8%Hard
1901Find a Peak Element II53.3%Medium
1902Depth of BST Given Insertion Order45.0%Medium
1903Largest Odd Number in String55.7%Easy
1904The Number of Full Rounds You Have Played45.7%Medium
1905Count Sub Islands67.9%Medium
1906Minimum Absolute Difference Queries43.9%Medium
1907Count Salary Categories64.6%Medium
1908Game of Nim57.3%Medium
1909Remove One Element to Make the Array Strictly Increasing26.0%Easy
1910Remove All Occurrences of a Substring74.0%Medium
1911Maximum Alternating Subsequence Sum59.2%Medium
1912Design Movie Rental System41.2%Hard
1913Maximum Product Difference Between Two Pairs81.4%Easy
1914Cyclically Rotating a Grid48.0%Medium
1915Number of Wonderful Substrings44.8%Medium
1916Count Ways to Build Rooms in an Ant Colony48.7%Hard
1917Leetcodify Friends Recommendations28.9%Hard
1918Kth Smallest Subarray Sum52.9%Medium
1919Leetcodify Similar Friends43.2%Hard
1920Build Array from Permutation91.5%Easy
1921Eliminate Maximum Number of Monsters37.8%Medium
1922Count Good Numbers38.5%Medium
1923Longest Common Subpath27.6%Hard
1924Erect the Fence II53.9%Hard
1925Count Square Sum Triples67.9%Easy
1926Nearest Exit from Entrance in Maze43.1%Medium
1927Sum Game47.0%Medium
1928Minimum Cost to Reach Destination in Time37.6%Hard
1929Concatenation of Array91.5%Easy
1930Unique Length-3 Palindromic Subsequences51.8%Medium
1931Painting a Grid With Three Different Colors57.3%Hard
1932Merge BSTs to Create Single BST35.3%Hard
1933Check if String Is Decomposable Into Value-Equal Substrings50.4%Easy
1934Confirmation Rate77.8%Medium
1935Maximum Number of Words You Can Type71.0%Easy
1936Add Minimum Number of Rungs42.8%Medium
1937Maximum Number of Points with Cost36.2%Medium
1938Maximum Genetic Difference Query39.5%Hard
1939Users That Actively Request Confirmation Messages61.7%Easy
1940Longest Common Subsequence Between Sorted Arrays79.4%Medium
1941Check if All Characters Have Equal Number of Occurrences76.9%Easy
1942The Number of the Smallest Unoccupied Chair40.4%Medium
1943Describe the Painting47.8%Medium
1944Number of Visible People in a Queue69.9%Hard
1945Sum of Digits of String After Convert61.1%Easy
1946Largest Number After Mutating Substring34.5%Medium
1947Maximum Compatibility Score Sum60.9%Medium
1948Delete Duplicate Folders in System58.0%Hard
1949Strong Friendship58.7%Medium
1950Maximum of Minimum Values in All Subarrays50.0%Medium
1951All the Pairs With the Maximum Number of Common Followers72.9%Medium
1952Three Divisors57.0%Easy
1953Maximum Number of Weeks for Which You Can Work39.0%Medium
1954Minimum Garden Perimeter to Collect Enough Apples53.0%Medium
1955Count Number of Special Subsequences51.3%Hard
1956Minimum Time For K Virus Variants to Spread46.5%Hard
1957Delete Characters to Make Fancy String56.6%Easy
1958Check if Move is Legal44.2%Medium
1959Minimum Total Space Wasted With K Resizing Operations41.9%Medium
1960Maximum Product of the Length of Two Palindromic Substrings29.6%Hard
1961Check If String Is a Prefix of Array54.2%Easy
1962Remove Stones to Minimize the Total58.8%Medium
1963Minimum Number of Swaps to Make the String Balanced68.3%Medium
1964Find the Longest Valid Obstacle Course at Each Position46.9%Hard
1965Employees With Missing Information81.1%Easy
1966Binary Searchable Numbers in an Unsorted Array65.5%Medium
1967Number of Strings That Appear as Substrings in Word79.9%Easy
1968Array With Elements Not Equal to Average of Neighbors49.4%Medium
1969Minimum Non-Zero Product of the Array Elements33.7%Medium
1970Last Day Where You Can Still Cross49.5%Hard
1971Find if Path Exists in Graph50.5%Easy
1972First and Last Call On the Same Day54.4%Hard
1973Count Nodes Equal to Sum of Descendants75.3%Medium
1974Minimum Time to Type Word Using Special Typewriter71.5%Easy
1975Maximum Matrix Sum45.6%Medium
1976Number of Ways to Arrive at Destination32.4%Medium
1977Number of Ways to Separate Numbers21.2%Hard
1978Employees Whose Manager Left the Company50.5%Easy
1979Find Greatest Common Divisor of Array76.8%Easy
1980Find Unique Binary String64.2%Medium
1981Minimize the Difference Between Target and Chosen Elements32.4%Medium
1982Find Array Given Subset Sums48.7%Hard
1983Widest Pair of Indices With Equal Range Sum53.1%Medium
1984Minimum Difference Between Highest and Lowest of K ScoresGo53.5%Easy
1985Find the Kth Largest Integer in the Array44.6%Medium
1986Minimum Number of Work Sessions to Finish the Tasks33.1%Medium
1987Number of Unique Good Subsequences52.2%Hard
1988Find Cutoff Score for Each School70.5%Medium
1989Maximum Number of People That Can Be Caught in Tag53.8%Medium
1990Count the Number of Experiments51.7%Medium
1991Find the Middle Index in Array67.3%Easy
1992Find All Groups of Farmland68.5%Medium
1993Operations on Tree43.5%Medium
1994The Number of Good Subsets34.1%Hard
1995Count Special Quadruplets59.0%Easy
1996The Number of Weak Characters in the Game44.0%Medium
1997First Day Where You Have Been in All the Rooms36.0%Medium
1998GCD Sort of an Array45.5%Hard
1999Smallest Greater Multiple Made of Two Digits50.0%Medium
2000Reverse Prefix of Word77.7%Easy
2001Number of Pairs of Interchangeable Rectangles44.6%Medium
2002Maximum Product of the Length of Two Palindromic Subsequences53.4%Medium
2003Smallest Missing Genetic Value in Each Subtree44.1%Hard
2004The Number of Seniors and Juniors to Join the Company38.8%Hard
2005Subtree Removal Game with Fibonacci Tree62.8%Hard
2006Count Number of Pairs With Absolute Difference K82.2%Easy
2007Find Original Array From Doubled Array41.0%Medium
2008Maximum Earnings From Taxi43.0%Medium
2009Minimum Number of Operations to Make Array Continuous45.5%Hard
2010The Number of Seniors and Juniors to Join the Company II57.8%Hard
2011Final Value of Variable After Performing Operations88.8%Easy
2012Sum of Beauty in the Array46.7%Medium
2013Detect Squares50.1%Medium
2014Longest Subsequence Repeated k Times55.7%Hard
2015Average Height of Buildings in Each Segment58.6%Medium
2016Maximum Difference Between Increasing Elements53.4%Easy
2017Grid Game42.7%Medium
2018Check if Word Can Be Placed In Crossword49.3%Medium
2019The Score of Students Solving Math Expression33.2%Hard
2020Number of Accounts That Did Not Stream73.2%Medium
2021Brightest Position on StreetGo62.9%Medium
2022Convert 1D Array Into 2D ArrayGo58.3%Easy
2023Number of Pairs of Strings With Concatenation Equal to Target72.8%Medium
2024Maximize the Confusion of an Exam59.4%Medium
2025Maximum Number of Ways to Partition an Array32.0%Hard
2026Low-Quality Problems85.5%Easy
2027Minimum Moves to Convert String53.8%Easy
2028Find Missing Observations43.5%Medium
2029Stone Game IX26.1%Medium
2030Smallest K-Length Subsequence With Occurrences of a Letter38.9%Hard
2031Count Subarrays With More Ones Than Zeros53.2%Medium
2032Two Out of Three72.6%Easy
2033Minimum Operations to Make a Uni-Value Grid52.3%Medium
2034Stock Price Fluctuation49.3%Medium
2035Partition Array Into Two Arrays to Minimize Sum Difference17.9%Hard
2036Maximum Alternating Subarray Sum41.2%Medium
2037Minimum Number of Moves to Seat EveryoneGo82.2%Easy
2038Remove Colored Pieces if Both Neighbors are the Same ColorGo58.1%Medium
2039The Time When the Network Becomes Idle50.6%Medium
2040Kth Smallest Product of Two Sorted Arrays29.1%Hard
2041Accepted Candidates From the Interviews79.4%Medium
2042Check if Numbers Are Ascending in a Sentence65.9%Easy
2043Simple Bank SystemGo65.9%Medium
2044Count Number of Maximum Bitwise-OR Subsets74.8%Medium
2045Second Minimum Time to Reach Destination38.5%Hard
2046Sort Linked List Already Sorted Using Absolute Values68.6%Medium
2047Number of Valid Words in a Sentence29.5%Easy
2048Next Greater Numerically Balanced Number47.1%Medium
2049Count Nodes With the Highest Score47.1%Medium
2050Parallel Courses III59.4%Hard
2051The Category of Each Member in the Store73.5%Medium
2052Minimum Cost to Separate Sentence Into Rows51.0%Medium
2053Kth Distinct String in an Array71.9%Easy
2054Two Best Non-Overlapping Events44.8%Medium
2055Plates Between Candles44.7%Medium
2056Number of Valid Move Combinations On Chessboard59.1%Hard
2057Smallest Index With Equal Value71.2%Easy
2058Find the Minimum and Maximum Number of Nodes Between Critical Points57.1%Medium
2059Minimum Operations to Convert Number47.2%Medium
2060Check if an Original String Exists Given Two Encoded Strings41.0%Hard
2061Number of Spaces Cleaning Robot Cleaned54.9%Medium
2062Count Vowel Substrings of a String65.9%Easy
2063Vowels of All Substrings55.0%Medium
2064Minimized Maximum of Products Distributed to Any Store50.0%Medium
2065Maximum Path Quality of a Graph57.7%Hard
2066Account Balance85.5%Medium
2067Number of Equal Count Substrings49.6%Medium
2068Check Whether Two Strings are Almost Equivalent64.7%Easy
2069Walking Robot Simulation II23.0%Medium
2070Most Beautiful Item for Each Query49.5%Medium
2071Maximum Number of Tasks You Can Assign34.8%Hard
2072The Winner University72.4%Easy
2073Time Needed to Buy Tickets62.0%Easy
2074Reverse Nodes in Even Length Groups51.5%Medium
2075Decode the Slanted Ciphertext50.2%Medium
2076Process Restricted Friend Requests53.4%Hard
2077Paths in Maze That Lead to Same Room56.8%Medium
2078Two Furthest Houses With Different Colors67.3%Easy
2079Watering Plants80.2%Medium
2080Range Frequency Queries38.1%Medium
2081Sum of k-Mirror Numbers42.1%Hard
2082The Number of Rich Customers80.7%Easy
2083Substrings That Begin and End With the Same Letter68.0%Medium
2084Drop Type 1 Orders for Customers With Type 0 Orders91.2%Medium
2085Count Common Words With One Occurrence69.6%Easy
2086Minimum Number of Buckets Required to Collect Rainwater from Houses45.0%Medium
2087Minimum Cost Homecoming of a Robot in a Grid51.4%Medium
2088Count Fertile Pyramids in a Land63.3%Hard
2089Find Target Indices After Sorting Array76.9%Easy
2090K Radius Subarray Averages42.4%Medium
2091Removing Minimum and Maximum From Array56.8%Medium
2092Find All People With Secret34.2%Hard
2093Minimum Cost to Reach City With Discounts56.3%Medium
2094Finding 3-Digit Even Numbers57.4%Easy
2095Delete the Middle Node of a Linked List60.7%Medium
2096Step-By-Step Directions From a Binary Tree Node to AnotherGo48.8%Medium
2097Valid Arrangement of Pairs40.9%Hard
2098Subsequence of Size K With the Largest Even Sum38.7%Medium
2099Find Subsequence of Length K With the Largest Sum42.5%Easy
2100Find Good Days to Rob the Bank49.1%Medium
2101Detonate the Maximum Bombs40.9%Medium
2102Sequentially Ordinal Rank Tracker66.1%Hard
2103Rings and Rods81.5%Easy
2104Sum of Subarray Ranges60.2%Medium
2105Watering Plants II50.2%Medium
2106Maximum Fruits Harvested After at Most K Steps35.1%Hard
2107Number of Unique Flavors After Sharing K Candies57.2%Medium
2108Find First Palindromic String in the Array78.6%Easy
2109Adding Spaces to a String56.2%Medium
2110Number of Smooth Descent Periods of a Stock57.4%Medium
2111Minimum Operations to Make the Array K-Increasing37.7%Hard
2112The Airport With the Most Traffic71.2%Medium
2113Elements in Array After Removing and Replacing Elements73.4%Medium
2114Maximum Number of Words Found in Sentences88.2%Easy
2115Find All Possible Recipes from Given Supplies48.2%Medium
2116Check if a Parentheses String Can Be Valid31.4%Medium
2117Abbreviating the Product of a Range28.1%Hard
2118Build the Equation57.8%Hard
2119A Number After a Double Reversal75.7%Easy
2120Execution of All Suffix Instructions Staying in a Grid83.5%Medium
2121Intervals Between Identical Elements43.0%Medium
2122Recover the Original Array38.1%Hard
2123Minimum Operations to Remove Adjacent Ones in Matrix41.1%Hard
2124Check if All A's Appears Before All B's71.5%Easy
2125Number of Laser Beams in a Bank82.7%Medium
2126Destroying Asteroids49.4%Medium
2127Maximum Employees to Be Invited to a Meeting32.9%Hard
2128Remove All Ones With Row and Column Flips76.4%Medium
2129Capitalize the Title60.1%Easy
2130Maximum Twin Sum of a Linked List81.6%Medium
2131Longest Palindrome by Concatenating Two Letter Words41.3%Medium
2132Stamping the Grid30.6%Hard
2133Check if Every Row and Column Contains All Numbers52.8%Easy
2134Minimum Swaps to Group All 1's Together II50.3%Medium
2135Count Words Obtained After Adding a Letter42.8%Medium
2136Earliest Possible Day of Full Bloom68.4%Hard
2137Pour Water Between Buckets to Make Water Levels Equal67.1%Medium
2138Divide a String Into Groups of Size k65.1%Easy
2139Minimum Moves to Reach Target Score48.4%Medium
2140Solving Questions With Brainpower45.8%Medium
2141Maximum Running Time of N Computers38.7%Hard
2142The Number of Passengers in Each Bus I51.1%Medium
2143Choose Numbers From Two Arrays in Range51.8%Hard
2144Minimum Cost of Buying Candies With Discount60.8%Easy
2145Count the Hidden Sequences36.3%Medium
2146K Highest Ranked Items Within a Price Range41.2%Medium
2147Number of Ways to Divide a Long Corridor39.9%Hard
2148Count Elements With Strictly Smaller and Greater Elements60.0%Easy
2149Rearrange Array Elements by Sign81.0%Medium
2150Find All Lonely Numbers in the Array60.7%Medium
2151Maximum Good People Based on Statements48.4%Hard
2152Minimum Number of Lines to Cover Points46.7%Medium
2153The Number of Passengers in Each Bus II50.4%Hard
2154Keep Multiplying Found Values by Two73.3%Easy
2155All Divisions With the Highest Score of a Binary Array63.3%Medium
2156Find Substring With Given Hash Value21.9%Hard
2157Groups of Strings25.2%Hard
2158Amount of New Area Painted Each Day55.7%Hard
2159Order Two Columns Independently63.5%Medium
2160Minimum Sum of Four Digit Number After Splitting Digits88.2%Easy
2161Partition Array According to Given Pivot84.3%Medium
2162Minimum Cost to Set Cooking Time39.2%Medium
2163Minimum Difference in Sums After Removal of Elements46.5%Hard
2164Sort Even and Odd Indices IndependentlyGo66.6%Easy
2165Smallest Value of the Rearranged NumberGo51.1%Medium
2166Design BitsetGo31.3%Medium
2167Minimum Time to Remove All Cars Containing Illegal GoodsGo40.1%Hard
2168Unique Substrings With Equal Digit Frequency60.2%Medium
2169Count Operations to Obtain ZeroGo75.6%Easy
2170Minimum Operations to Make the Array AlternatingGo33.2%Medium
2171Removing Minimum Number of Magic BeansGo42.0%Medium
2172Maximum AND Sum of Array46.8%Hard
2173Longest Winning Streak59.7%Hard
2174Remove All Ones With Row and Column Flips II68.8%Medium
2175The Change in Global Rankings68.5%Medium
2176Count Equal and Divisible Pairs in an Array80.3%Easy
2177Find Three Consecutive Integers That Sum to a Given Number63.5%Medium
2178Maximum Split of Positive Even Integers59.1%Medium
2179Count Good Triplets in an Array36.7%Hard
2180Count Integers With Even Digit SumGo64.5%Easy
2181Merge Nodes in Between ZerosGo86.9%Medium
2182Construct String With Repeat LimitGo51.8%Medium
2183Count Array Pairs Divisible by KGo28.3%Hard
2184Number of Ways to Build Sturdy Brick Wall52.1%Medium
2185Counting Words With a Given Prefix77.1%Easy
2186Minimum Number of Steps to Make Two Strings Anagram II71.9%Medium
2187Minimum Time to Complete Trips31.8%Medium
2188Minimum Time to Finish the Race41.9%Hard
2189Number of Ways to Build House of Cards63.2%Medium
2190Most Frequent Number Following Key In an Array60.4%Easy
2191Sort the Jumbled Numbers45.1%Medium
2192All Ancestors of a Node in a Directed Acyclic Graph50.5%Medium
2193Minimum Number of Moves to Make Palindrome50.8%Hard
2194Cells in a Range on an Excel Sheet85.7%Easy
2195Append K Integers With Minimal Sum24.9%Medium
2196Create Binary Tree From Descriptions72.0%Medium
2197Replace Non-Coprime Numbers in Array38.3%Hard
2198Number of Single Divisor Triplets56.2%Medium
2199Finding the Topic of Each Post49.8%Hard
2200Find All K-Distant Indices in an Array64.4%Easy
2201Count Artifacts That Can Be Extracted54.9%Medium
2202Maximize the Topmost Element After K Moves22.7%Medium
2203Minimum Weighted Subgraph With the Required Paths35.6%Hard
2204Distance to a Cycle in Undirected Graph71.4%Hard
2205The Number of Users That Are Eligible for Discount50.4%Easy
2206Divide Array Into Equal Pairs74.8%Easy
2207Maximize Number of Subsequences in a String32.7%Medium
2208Minimum Operations to Halve Array Sum45.1%Medium
2209Minimum White Tiles After Covering With Carpets33.7%Hard
2210Count Hills and Valleys in an Array57.7%Easy
2211Count Collisions on a Road41.7%Medium
2212Maximum Points in an Archery Competition48.7%Medium
2213Longest Substring of One Repeating Character31.1%Hard
2214Minimum Health to Beat Game57.6%Medium
2215Find the Difference of Two Arrays69.1%Easy
2216Minimum Deletions to Make Array Beautiful46.1%Medium
2217Find Palindrome With Fixed Length34.4%Medium
2218Maximum Value of K Coins From Piles48.5%Hard
2219Maximum Sum Score of Array60.6%Medium
2220Minimum Bit Flips to Convert Number82.3%Easy
2221Find Triangular Sum of an Array79.1%Medium
2222Number of Ways to Select Buildings50.7%Medium
2223Sum of Scores of Built Strings36.5%Hard
2224Minimum Number of Operations to Convert Time65.2%Easy
2225Find Players With Zero or One Losses69.3%Medium
2226Maximum Candies Allocated to K Children35.9%Medium
2227Encrypt and Decrypt Strings39.0%Hard
2228Users With Two Purchases Within Seven Days44.8%Medium
2229Check if an Array Is Consecutive61.7%Easy
2230The Users That Are Eligible for Discount51.1%Easy
2231Largest Number After Digit Swaps by Parity60.2%Easy
2232Minimize Result by Adding Parentheses to Expression64.7%Medium
2233Maximum Product After K Increments41.3%Medium
2234Maximum Total Beauty of the Gardens28.1%Hard
2235Add Two Integers90.0%Easy
2236Root Equals Sum of Children87.6%Easy
2237Count Positions on Street With Required Brightness68.6%Medium
2238Number of Times a Driver Was a Passenger75.3%Medium
2239Find Closest Number to Zero45.8%Easy
2240Number of Ways to Buy Pens and Pencils56.8%Medium
2241Design an ATM Machine38.6%Medium
2242Maximum Score of a Node Sequence37.4%Hard
2243Calculate Digit Sum of a String66.9%Easy
2244Minimum Rounds to Complete All Tasks57.0%Medium
2245Maximum Trailing Zeros in a Cornered Path35.2%Medium
2246Longest Path With Different Adjacent Characters44.9%Hard
2247Maximum Cost of Trip With K Highways50.5%Hard
2248Intersection of Multiple Arrays69.5%Easy
2249Count Lattice Points Inside a Circle50.4%Medium
2250Count Number of Rectangles Containing Each Point33.9%Medium
2251Number of Flowers in Full Bloom51.9%Hard
2252Dynamic Pivoting of a Table55.5%Hard
2253Dynamic Unpivoting of a Table67.4%Hard
2254Design Video Sharing Platform65.8%Hard
2255Count Prefixes of a Given String73.3%Easy
2256Minimum Average Difference35.7%Medium
2257Count Unguarded Cells in the Grid52.2%Medium
2258Escape the Spreading Fire34.7%Hard
2259Remove Digit From Number to Maximize Result47.0%Easy
2260Minimum Consecutive Cards to Pick Up51.9%Medium
2261K Divisible Elements Subarrays47.4%Medium
2262Total Appeal of A String58.1%Hard
2263Make Array Non-decreasing or Non-increasing68.0%Hard
2264Largest 3-Same-Digit Number in String58.9%Easy
2265Count Nodes Equal to Average of Subtree85.6%Medium
2266Count Number of Texts47.3%Medium
2267Check if There Is a Valid Parentheses String Path37.9%Hard
2268Minimum Number of Keypresses74.4%Medium
2269Find the K-Beauty of a Number57.2%Easy
2270Number of Ways to Split Array44.2%Medium
2271Maximum White Tiles Covered by a Carpet32.4%Medium
2272Substring With Largest Variance37.1%Hard
2273Find Resultant Array After Removing Anagrams58.0%Easy
2274Maximum Consecutive Floors Without Special Floors52.2%Medium
2275Largest Combination With Bitwise AND Greater Than Zero72.3%Medium
2276Count Integers in Intervals33.9%Hard
2277Closest Node to Path in Tree64.1%Hard
2278Percentage of Letter in String74.0%Easy
2279Maximum Bags With Full Capacity of Rocks62.6%Medium
2280Minimum Lines to Represent a Line Chart23.7%Medium
2281Sum of Total Strength of Wizards27.9%Hard
2282Number of People That Can Be Seen in a Grid50.4%Medium
2283Check if Number Has Equal Digit Count and Digit Value73.6%Easy
2284Sender With Largest Word Count55.8%Medium
2285Maximum Total Importance of Roads60.7%Medium
2286Booking Concert Tickets in Groups15.7%Hard
2287Rearrange Characters to Make Target String57.7%Easy
2288Apply Discount to Prices27.3%Medium
2289Steps to Make Array Non-decreasing21.4%Medium
2290Minimum Obstacle Removal to Reach Corner49.2%Hard
2291Maximum Profit From Trading Stocks46.4%Medium
2292Products With Three or More Orders in Two Consecutive Years39.9%Medium
2293Min Max Game64.2%Easy
2294Partition Array Such That Maximum Difference Is K72.4%Medium
2295Replace Elements in an Array57.6%Medium
2296Design a Text Editor39.5%Hard
2297Jump Game VIII57.0%Medium
2298Tasks Count in the Weekend87.7%Medium
2299Strong Password Checker II56.8%Easy
2300Successful Pairs of Spells and Potions31.5%Medium
2301Match Substring After Replacement39.2%Hard
2302Count Subarrays With Score Less Than K51.9%Hard
2303Calculate Amount Paid in Taxes63.0%Easy
2304Minimum Path Cost in a Grid65.4%Medium
2305Fair Distribution of Cookies62.9%Medium
2306Naming a Company34.4%Hard
2307Check for Contradictions in Equations40.9%Hard
2308Arrange Table by Gender79.5%Medium
2309Greatest English Letter in Upper and Lower Case68.5%Easy
2310Sum of Numbers With Units Digit K25.4%Medium
2311Longest Binary Subsequence Less Than or Equal to K36.1%Medium
2312Selling Pieces of Wood48.0%Hard
2313Minimum Flips in Binary Tree to Get Result67.5%Hard
2314The First Day of the Maximum Recorded Degree in Each City76.9%Medium
2315Count Asterisks82.2%Easy
2316Count Unreachable Pairs of Nodes in an Undirected Graph38.6%Medium
2317Maximum XOR After Operations78.2%Medium
2318Number of Distinct Roll Sequences56.3%Hard
2319Check if Matrix Is X-Matrix67.3%Easy
2320Count Number of Ways to Place Houses39.9%Medium
2321Maximum Score Of Spliced Array55.1%Hard
2322Minimum Score After Removals on a Tree50.3%Hard
2323Find Minimum Time to Finish All Jobs II75.4%Medium
2324Product Sales Analysis IV84.5%Medium
2325Decode the Message84.7%Easy
2326Spiral Matrix IV74.6%Medium
2327Number of People Aware of a Secret44.4%Medium
2328Number of Increasing Paths in a Grid47.7%Hard
2329Product Sales Analysis V70.2%Easy
2330Valid Palindrome IV76.2%Medium
2331Evaluate Boolean Binary Tree79.5%Easy
2332The Latest Time to Catch a Bus22.7%Medium
2333Minimum Sum of Squared Difference24.9%Medium
2334Subarray With Elements Greater Than Varying Threshold40.1%Hard
2335Minimum Amount of Time to Fill Cups55.3%Easy
2336Smallest Number in Infinite Set71.8%Medium
2337Move Pieces to Obtain a String48.0%Medium
2338Count the Number of Ideal Arrays25.3%Hard
2339All the Matches of the League88.8%Easy
2340Minimum Adjacent Swaps to Make a Valid Array76.6%Medium
2341Maximum Number of Pairs in Array76.6%Easy
2342Max Sum of a Pair With Equal Sum of Digits52.9%Medium
2343Query Kth Smallest Trimmed Number40.7%Medium
2344Minimum Deletions to Make Array Divisible56.9%Hard
2345Finding the Number of Visible Mountains44.5%Medium
2346Compute the Rank as a Percentage32.9%Medium
2347Best Poker Hand60.7%Easy
2348Number of Zero-Filled Subarrays56.8%Medium
2349Design a Number Container System46.8%Medium
2350Shortest Impossible Sequence of Rolls68.2%Hard
2351First Letter to Appear Twice76.6%Easy
2352Equal Row and Column Pairs71.1%Medium
2353Design a Food Rating System34.4%Medium
2354Number of Excellent Pairs45.8%Hard
2355Maximum Number of Books You Can Take47.0%Hard
2356Number of Unique Subjects Taught by Each Teacher91.5%Easy
2357Make Array Zero by Subtracting Equal Amounts72.5%Easy
2358Maximum Number of Groups Entering a Competition67.3%Medium
2359Find Closest Node to Given Two Nodes33.8%Medium
2360Longest Cycle in a Graph38.5%Hard
2361Minimum Costs Using the Train Line77.1%Hard
2362Generate the Invoice89.1%Hard
2363Merge Similar Items75.1%Easy
2364Count Number of Bad Pairs40.5%Medium
2365Task Scheduler II46.0%Medium
2366Minimum Replacements to Sort the Array39.5%Hard
2367Number of Arithmetic Triplets83.7%Easy
2368Reachable Nodes With Restrictions57.2%Medium
2369Check if There is a Valid Partition For The Array40.0%Medium
2370Longest Ideal Subsequence37.8%Medium
2371Minimize Maximum Value in a Grid69.5%Hard
2372Calculate the Influence of Each Salesperson88.6%Medium
2373Largest Local Values in a Matrix84.1%Easy
2374Node With Highest Edge Score45.9%Medium
2375Construct Smallest Number From DI String73.7%Medium
2376Count Special Integers36.0%Hard
2377Sort the Olympic Table80.2%Easy
2378Choose Edges to Maximize Score in a Tree61.9%Medium
2379Minimum Recolors to Get K Consecutive Black Blocks56.6%Easy
2380Time Needed to Rearrange a Binary String47.7%Medium
2381Shifting Letters II33.9%Medium
2382Maximum Segment Sum After Removals47.7%Hard
2383Minimum Hours of Training to Win a Competition40.8%Easy
2384Largest Palindromic Number30.1%Medium
2385Amount of Time for Binary Tree to Be Infected56.0%Medium
2386Find the K-Sum of an Array36.2%Hard
2387Median of a Row Wise Sorted Matrix67.7%Medium
2388Change Null Values in a Table to the Previous Value79.7%Medium
2389Longest Subsequence With Limited Sum64.4%Easy
2390Removing Stars From a String62.9%Medium
2391Minimum Amount of Time to Collect Garbage85.4%Medium
2392Build a Matrix With Conditions59.1%Hard
2393Count Strictly Increasing Subarrays76.4%Medium
2394Employees With Deductions50.9%Medium
2395Find Subarrays With Equal Sum63.6%Easy
2396Strictly Palindromic Number87.7%Medium
2397Maximum Rows Covered by Columns52.2%Medium
2398Maximum Number of Robots Within Budget31.6%Hard
2399Check Distances Between Same Letters70.5%Easy
2400Number of Ways to Reach a Position After Exactly k Steps31.8%Medium
2401Longest Nice Subarray47.7%Medium
2402Meeting Rooms III32.7%Hard
2403Minimum Time to Kill All Monsters52.3%Hard
2404Most Frequent Even Element51.7%Easy
2405Optimal Partition of String74.1%Medium
2406Divide Intervals Into Minimum Number of Groups45.0%Medium
2407Longest Increasing Subsequence II20.6%Hard
2408Design SQL87.3%Medium
2409Count Days Spent Together42.3%Easy
2410Maximum Matching of Players With Trainers59.3%Medium
2411Smallest Subarrays With Maximum Bitwise OR40.0%Medium
2412Minimum Money Required Before Transactions38.8%Hard
2413Smallest Even Multiple88.2%Easy
2414Length of the Longest Alphabetical Continuous Substring55.5%Medium
2415Reverse Odd Levels of Binary Tree75.6%Medium
2416Sum of Prefix Scores of Strings42.3%Hard
2417Closest Fair Integer48.5%Medium
2418Sort the People82.7%Easy
2419Longest Subarray With Maximum Bitwise AND47.3%Medium
2420Find All Good Indices36.8%Medium
2421Number of Good Paths37.5%Hard
2422Merge Operations to Turn Array Into a Palindrome74.8%Medium
2423Remove Letter To Equalize Frequency19.4%Easy
2424Longest Uploaded Prefix53.2%Medium
2425Bitwise XOR of All Pairings58.3%Medium
2426Number of Pairs Satisfying Inequality41.1%Hard
2427Number of Common Factors80.3%Easy
2428Maximum Sum of an Hourglass73.6%Medium
2429Minimize XOR41.4%Medium
2430Maximum Deletions on a String32.8%Hard
2431Maximize Total Tastiness of Purchased Fruits76.6%Medium
2432The Employee That Worked on the Longest Task48.5%Easy
2433Find The Original Array of Prefix Xor85.1%Medium
2434Using a Robot to Print the Lexicographically Smallest String37.5%Medium
2435Paths in Matrix Whose Sum Is Divisible by K40.8%Hard
2436Minimum Split Into Subarrays With GCD Greater Than One85.0%Medium
2437Number of Valid Clock Times40.3%Easy
2438Range Product Queries of Powers36.6%Medium
2439Minimize Maximum of Array30.1%Medium
2440Create Components With Same Value53.4%Hard
2441Largest Positive Integer That Exists With Its Negative68.7%Easy
2442Count Number of Distinct Integers After Reverse Operations78.8%Medium
2443Sum of Number and Its Reverse40.6%Medium
2444Count Subarrays With Fixed Bounds38.4%Hard
----------------------------------------------------------------------------------------------------------------------

下面这些是免费的算法题,但是暂时还不能使用 Go 解答的:

暂无


三.分类

Array

Problems List in there

String

Problems List in there

Two Pointers

  • 双指针滑动窗口的经典写法。右指针不断往右移,移动到不能往右移动为止(具体条件根据题目而定)。当右指针到最右边以后,开始挪动左指针,释放窗口左边界。第 3 题,第 76 题,第 209 题,第 424 题,第 438 题,第 567 题,第 713 题,第 763 题,第 845 题,第 881 题,第 904 题,第 978 题,第 992 题,第 1004 题,第 1040 题,第 1052 题。
	left, right := 0, -1

	for left < len(s) {
		if right+1 < len(s) && freq[s[right+1]-'a'] == 0 {
			freq[s[right+1]-'a']++
			right++
		} else {
			freq[s[left]-'a']--
			left++
		}
		result = max(result, right-left+1)
	}
  • 快慢指针可以查找重复数字,时间复杂度 O(n),第 287 题。
  • 替换字母以后,相同字母能出现连续最长的长度。第 424 题。
  • SUM 问题集。第 1 题,第 15 题,第 16 题,第 18 题,第 167 题,第 923 题,第 1074 题。

Problems List in there

Linked List

  • 巧妙的构造虚拟头结点。可以使遍历处理逻辑更加统一。
  • 灵活使用递归。构造递归条件,使用递归可以巧妙的解题。不过需要注意有些题目不能使用递归,因为递归深度太深会导致超时和栈溢出。
  • 链表区间逆序。第 92 题。
  • 链表寻找中间节点。第 876 题。链表寻找倒数第 n 个节点。第 19 题。只需要一次遍历就可以得到答案。
  • 合并 K 个有序链表。第 21 题,第 23 题。
  • 链表归类。第 86 题,第 328 题。
  • 链表排序,时间复杂度要求 O(n * log n),空间复杂度 O(1)。只有一种做法,归并排序,至顶向下归并。第 148 题。
  • 判断链表是否存在环,如果有环,输出环的交叉点的下标;判断 2 个链表是否有交叉点,如果有交叉点,输出交叉点。第 141 题,第 142 题,第 160 题。

Problems List in there

Stack

  • 括号匹配问题及类似问题。第 20 题,第 921 题,第 1021 题。
  • 栈的基本 pop 和 push 操作。第 71 题,第 150 题,第 155 题,第 224 题,第 225 题,第 232 题,第 946 题,第 1047 题。
  • 利用栈进行编码问题。第 394 题,第 682 题,第 856 题,第 880 题。
  • 单调栈。利用栈维护一个单调递增或者递减的下标数组。第 84 题,第 456 题,第 496 题,第 503 题,第 739 题,第 901 题,第 907 题,第 1019 题。

Problems List in there

Tree

Problems List in there

Dynamic Programming

Problems List in there

Backtracking

  • 排列问题 Permutations。第 46 题,第 47 题。第 60 题,第 526 题,第 996 题。
  • 组合问题 Combination。第 39 题,第 40 题,第 77 题,第 216 题。
  • 排列和组合杂交问题。第 1079 题。
  • N 皇后终极解法(二进制解法)。第 51 题,第 52 题。
  • 数独问题。第 37 题。
  • 四个方向搜索。第 79 题,第 212 题,第 980 题。
  • 子集合问题。第 78 题,第 90 题。
  • Trie。第 208 题,第 211 题。
  • BFS 优化。第 126 题,第 127 题。
  • DFS 模板。(只是一个例子,不对应任何题)
func combinationSum2(candidates []int, target int) [][]int {
	if len(candidates) == 0 {
		return [][]int{}
	}
	c, res := []int{}, [][]int{}
	sort.Ints(candidates)
	findcombinationSum2(candidates, target, 0, c, &res)
	return res
}

func findcombinationSum2(nums []int, target, index int, c []int, res *[][]int) {
	if target == 0 {
		b := make([]int, len(c))
		copy(b, c)
		*res = append(*res, b)
		return
	}
	for i := index; i < len(nums); i++ {
		if i > index && nums[i] == nums[i-1] { // 这里是去重的关键逻辑
			continue
		}
		if target >= nums[i] {
			c = append(c, nums[i])
			findcombinationSum2(nums, target-nums[i], i+1, c, res)
			c = c[:len(c)-1]
		}
	}
}
  • BFS 模板。(只是一个例子,不对应任何题)
func updateMatrix_BFS(matrix [][]int) [][]int {
	res := make([][]int, len(matrix))
	if len(matrix) == 0 || len(matrix[0]) == 0 {
		return res
	}
	queue := make([][]int, 0)
	for i, _ := range matrix {
		res[i] = make([]int, len(matrix[0]))
		for j, _ := range res[i] {
			if matrix[i][j] == 0 {
				res[i][j] = -1
				queue = append(queue, []int{i, j})
			}
		}
	}
	level := 1
	for len(queue) > 0 {
		size := len(queue)
		for size > 0 {
			size -= 1
			node := queue[0]
			queue = queue[1:]
			i, j := node[0], node[1]
			for _, direction := range [][]int{{-1, 0}, {1, 0}, {0, 1}, {0, -1}} {
				x := i + direction[0]
				y := j + direction[1]
				if x < 0 || x >= len(matrix) || y < 0 || y >= len(matrix[0]) || res[x][y] < 0 || res[x][y] > 0 {
					continue
				}
				res[x][y] = level
				queue = append(queue, []int{x, y})
			}
		}
		level++
	}
	for i, row := range res {
		for j, cell := range row {
			if cell == -1 {
				res[i][j] = 0
			}
		}
	}
	return res
}

Problems List in there

Depth First Search

Problems List in there

Breadth First Search

Problems List in there

Binary Search

  • 二分搜索的经典写法。需要注意的三点:
    1. 循环退出条件,注意是 low <= high,而不是 low < high。
    2. mid 的取值,mid := low + (high-low)>>1
    3. low 和 high 的更新。low = mid + 1,high = mid - 1。
func binarySearchMatrix(nums []int, target int) int {
	low, high := 0, len(nums)-1
	for low <= high {
		mid := low + (high-low)>>1
		if nums[mid] == target {
			return mid
		} else if nums[mid] > target {
			high = mid - 1
		} else {
			low = mid + 1
		}
	}
	return -1
}
  • 二分搜索的变种写法。有 4 个基本变种:
    1. 查找第一个与 target 相等的元素,时间复杂度 O(logn)
    2. 查找最后一个与 target 相等的元素,时间复杂度 O(logn)
    3. 查找第一个大于等于 target 的元素,时间复杂度 O(logn)
    4. 查找最后一个小于等于 target 的元素,时间复杂度 O(logn)
// 二分查找第一个与 target 相等的元素,时间复杂度 O(logn)
func searchFirstEqualElement(nums []int, target int) int {
	low, high := 0, len(nums)-1
	for low <= high {
		mid := low + ((high - low) >> 1)
		if nums[mid] > target {
			high = mid - 1
		} else if nums[mid] < target {
			low = mid + 1
		} else {
			if (mid == 0) || (nums[mid-1] != target) { // 找到第一个与 target 相等的元素
				return mid
			}
			high = mid - 1
		}
	}
	return -1
}

// 二分查找最后一个与 target 相等的元素,时间复杂度 O(logn)
func searchLastEqualElement(nums []int, target int) int {
	low, high := 0, len(nums)-1
	for low <= high {
		mid := low + ((high - low) >> 1)
		if nums[mid] > target {
			high = mid - 1
		} else if nums[mid] < target {
			low = mid + 1
		} else {
			if (mid == len(nums)-1) || (nums[mid+1] != target) { // 找到最后一个与 target 相等的元素
				return mid
			}
			low = mid + 1
		}
	}
	return -1
}

// 二分查找第一个大于等于 target 的元素,时间复杂度 O(logn)
func searchFirstGreaterElement(nums []int, target int) int {
	low, high := 0, len(nums)-1
	for low <= high {
		mid := low + ((high - low) >> 1)
		if nums[mid] >= target {
			if (mid == 0) || (nums[mid-1] < target) { // 找到第一个大于等于 target 的元素
				return mid
			}
			high = mid - 1
		} else {
			low = mid + 1
		}
	}
	return -1
}

// 二分查找最后一个小于等于 target 的元素,时间复杂度 O(logn)
func searchLastLessElement(nums []int, target int) int {
	low, high := 0, len(nums)-1
	for low <= high {
		mid := low + ((high - low) >> 1)
		if nums[mid] <= target {
			if (mid == len(nums)-1) || (nums[mid+1] > target) { // 找到最后一个小于等于 target 的元素
				return mid
			}
			low = mid + 1
		} else {
			high = mid - 1
		}
	}
	return -1
}
  • 在基本有序的数组中用二分搜索。经典解法可以解,变种写法也可以写,常见的题型,在山峰数组中找山峰,在旋转有序数组中找分界点。第 33 题,第 81 题,第 153 题,第 154 题,第 162 题,第 852 题
func peakIndexInMountainArray(A []int) int {
	low, high := 0, len(A)-1
	for low < high {
		mid := low + (high-low)>>1
		// 如果 mid 较大,则左侧存在峰值,high = m,如果 mid + 1 较大,则右侧存在峰值,low = mid + 1
		if A[mid] > A[mid+1] {
			high = mid
		} else {
			low = mid + 1
		}
	}
	return low
}
  • max-min 最大值最小化问题。求在最小满足条件的情况下的最大值。第 410 题,第 875 题,第 1011 题,第 1283 题。

Problems List in there

Math

Problems List in there

Hash Table

Problems List in there

Sort

  • 深刻的理解多路快排。第 75 题。
  • 链表的排序,插入排序(第 147 题)和归并排序(第 148 题)
  • 桶排序和基数排序。第 164 题。
  • "摆动排序"。第 324 题。
  • 两两不相邻的排序。第 767 题,第 1054 题。
  • "饼子排序"。第 969 题。

Problems List in there

Bit Manipulation

  • 异或的特性。第 136 题,第 268 题,第 389 题,第 421 题,
x ^ 0 = x
x ^ 11111……1111 = ~x
x ^ (~x) = 11111……1111
x ^ x = 0
a ^ b = c  => a ^ c = b  => b ^ c = a (交换律)
a ^ b ^ c = a ^ (b ^ c) = (a ^ b)^ c (结合律)
  • 构造特殊 Mask,将特殊位置放 0 或 1。
将 x 最右边的 n 位清零, x & ( ~0 << n )
获取 x 的第 n 位值(0 或者 1),(x >> n) & 1
获取 x 的第 n 位的幂值,x & (1 << (n - 1))
仅将第 n 位置为 1,x | (1 << n)
仅将第 n 位置为 0,x & (~(1 << n))
将 x 最高位至第 n 位(含)清零,x & ((1 << n) - 1)
将第 n 位至第 0 位(含)清零,x & (~((1 << (n + 1)) - 1))
  • 有特殊意义的 & 位操作运算。第 260 题,第 201 题,第 318 题,第 371 题,第 397 题,第 461 题,第 693 题,
X & 1 == 1 判断是否是奇数(偶数)
X & = (X - 1) 将最低位(LSB)的 1 清零
X & -X 得到最低位(LSB)的 1
X & ~X = 0

Problems List in there

Union Find

  • 灵活使用并查集的思想,熟练掌握并查集的模板,模板中有两种并查集的实现方式,一种是路径压缩 + 秩优化的版本,另外一种是计算每个集合中元素的个数 + 最大集合元素个数的版本,这两种版本都有各自使用的地方。能使用第一类并查集模板的题目有:第 128 题,第 130 题,第 547 题,第 684 题,第 721 题,第 765 题,第 778 题,第 839 题,第 924 题,第 928 题,第 947 题,第 952 题,第 959 题,第 990 题。能使用第二类并查集模板的题目有:第 803 题,第 952 题。第 803 题秩优化和统计集合个数这些地方会卡时间,如果不优化,会 TLE。
  • 并查集是一种思想,有些题需要灵活使用这种思想,而不是死套模板,如第 399 题,这一题是 stringUnionFind,利用并查集思想实现的。这里每个节点是基于字符串和 map 的,而不是单纯的用 int 节点编号实现的。
  • 有些题死套模板反而做不出来,比如第 685 题,这一题不能路径压缩和秩优化,因为题目中涉及到有向图,需要知道节点的前驱节点,如果路径压缩了,这一题就没法做了。这一题不需要路径压缩和秩优化。
  • 灵活的抽象题目给的信息,将给定的信息合理的编号,使用并查集解题,并用 map 降低时间复杂度,如第 721 题,第 959 题。
  • 关于地图,砖块,网格的题目,可以新建一个特殊节点,将四周边缘的砖块或者网格都 union() 到这个特殊节点上。第 130 题,第 803 题。
  • 能用并查集的题目,一般也可以用 DFS 和 BFS 解答,只不过时间复杂度会高一点。

Problems List in there

Sliding Window

  • 双指针滑动窗口的经典写法。右指针不断往右移,移动到不能往右移动为止(具体条件根据题目而定)。当右指针到最右边以后,开始挪动左指针,释放窗口左边界。第 3 题,第 76 题,第 209 题,第 424 题,第 438 题,第 567 题,第 713 题,第 763 题,第 845 题,第 881 题,第 904 题,第 978 题,第 992 题,第 1004 题,第 1040 题,第 1052 题。
	left, right := 0, -1

	for left < len(s) {
		if right+1 < len(s) && freq[s[right+1]-'a'] == 0 {
			freq[s[right+1]-'a']++
			right++
		} else {
			freq[s[left]-'a']--
			left++
		}
		result = max(result, right-left+1)
	}
  • 滑动窗口经典题。第 239 题,第 480 题。

Problems List in there

Segment Tree

  • 线段树的经典数组实现写法。将合并两个节点 pushUp 逻辑抽象出来了,可以实现任意操作(常见的操作有:加法,取 max,min 等等)。第 218 题,第 303 题,第 307 题,第 699 题。
  • 计数线段树的经典写法。第 315 题,第 327 题,第 493 题。
  • 线段树的树的实现写法。第 715 题,第 732 题。
  • 区间懒惰更新。第 218 题,第 699 题。
  • 离散化。离散化需要注意一个特殊情况:假如三个区间为 [1,10] [1,4] [6,10],离散化后 x[1]=1,x[2]=4,x[3]=6,x[4]=10。第一个区间为 [1,4],第二个区间为 [1,2],第三个区间为 [3,4],这样一来,区间一 = 区间二 + 区间三,这和离散前的模型不符,离散前,很明显,区间一 > 区间二 + 区间三。正确的做法是:在相差大于 1 的数间加一个数,例如在上面 1 4 6 10 中间加 5,即可 x[1]=1,x[2]=4,x[3]=5,x[4]=6,x[5]=10。这样处理之后,区间一是 1-5 ,区间二是 1-2 ,区间三是 4-5 。
  • 灵活构建线段树。线段树节点可以存储多条信息,合并两个节点的 pushUp 操作也可以是多样的。第 850 题,第 1157 题。

线段树题型从简单到困难:

  1. 单点更新:
    HDU 1166 敌兵布阵 update:单点增减 query:区间求和
    HDU 1754 I Hate It update:单点替换 query:区间最值
    HDU 1394 Minimum Inversion Number update:单点增减 query:区间求和
    HDU 2795 Billboard query:区间求最大值的位子(直接把update的操作在query里做了)
  2. 区间更新:
    HDU 1698 Just a Hook update:成段替换 (由于只query一次总区间,所以可以直接输出 1 结点的信息)
    POJ 3468 A Simple Problem with Integers update:成段增减 query:区间求和
    POJ 2528 Mayor’s posters 离散化 + update:成段替换 query:简单hash
    POJ 3225 Help with Intervals update:成段替换,区间异或 query:简单hash
  3. 区间合并(这类题目会询问区间中满足条件的连续最长区间,所以PushUp的时候需要对左右儿子的区间进行合并):
    POJ 3667 Hotel update:区间替换 query:询问满足条件的最左端点
  4. 扫描线(这类题目需要将一些操作排序,然后从左到右用一根扫描线扫过去最典型的就是矩形面积并,周长并等题):
    HDU 1542 Atlantis update:区间增减 query:直接取根节点的值
    HDU 1828 Picture update:区间增减 query:直接取根节点的值

Problems List in there

Binary Indexed Tree

Problems List in there


Thank you for reading here. This is bonus. You can download my 《ACM-ICPC Algorithm Template》

♥️ Thanks

Thanks for your Star!

Stargazers over time