2021

an archive of posts from by date

Dec 23, 2024 2379. Minimum Recolors to Get K Consecutive Black Blocks
Dec 23, 2024 2471. Minimum Number of Operations to Sort a Binary Tree by Level
Dec 22, 2024 1387. Sort Integers by The Power Value
Dec 22, 2024 2090. K Radius Subarray Averages
Dec 21, 2024 2545. Sort the Students by Their Kth Score
Dec 21, 2024 1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Dec 21, 2024 2872. Maximum Number of K-Divisible Components
Dec 20, 2024 Master Fixed-Length Sliding Window: A Universal Approach
Dec 20, 2024 2415. Reverse Odd Levels of Binary Tree
Dec 20, 2024 3138. Minimum Length of Anagram Concatenation
Dec 20, 2024 643. Maximum Average Subarray I
Dec 19, 2024 1456. Maximum Number of Vowels in a Substring of Given Length
Dec 19, 2024 769. Max Chunks To Make Sorted
Dec 19, 2024 3285. Find Indices of Stable Mountains
Dec 18, 2024 7. Reverse Integer
Dec 18, 2024 1475. Final Prices With a Special Discount in a Shop
Dec 17, 2024 885. Spiral Matrix III
Dec 17, 2024 2182. Construct String With Repeat Limit
Dec 16, 2024 50. Pow(x, n)
Dec 16, 2024 1847. Closest Room
Dec 16, 2024 415. Add Strings
Dec 15, 2024 1338. Reduce Array Size to The Half
Dec 15, 2024 1792. Maximum Average Pass Ratio
Dec 15, 2024 1539. Kth Missing Positive Number
Dec 15, 2024 658. Find K Closest Elements
Dec 14, 2024 2762. Continuous Subarrays
Dec 13, 2024 670. Maximum Swap
Dec 13, 2024 2593. Find Score of an Array After Marking All Elements
Dec 13, 2024 3264. Final Array State After K Multiplication Operations I
Dec 12, 2024 2558. Take Gifts From the Richest Pile
Dec 12, 2024 2931. Maximum Spending After Buying Items
Dec 11, 2024 65. Valid Number
Dec 11, 2024 2717. Semi-Ordered Permutation
Dec 11, 2024 2779. Maximum Beauty of an Array After Applying Operation
Dec 10, 2024 935. Knight Dialer
Dec 10, 2024 2981. Find Longest Special Substring That Occurs Thrice I
Dec 10, 2024 38. Count and Say
Dec 09, 2024 468. Validate IP Address
Dec 09, 2024 3152. Special Array II
Dec 09, 2024 1812. Determine Color of a Chessboard Square
Dec 08, 2024 8. String to Integer (atoi)
Dec 08, 2024 66. Plus One
Dec 07, 2024 13. Roman to Integer
Dec 07, 2024 58. Length of Last Word
Dec 07, 2024 28. Find the Index of the First Occurrence in a String
Dec 06, 2024 9. Palindrome Number
Dec 06, 2024 434. Number of Segments in a String
Dec 06, 2024 498. Diagonal Traverse
Dec 06, 2024 999. Available Captures for Rook
Dec 05, 2024 3001. Minimum Moves to Capture The Queen
Dec 05, 2024 2022. Convert 1D Array Into 2D Array
Dec 04, 2024 766. Toeplitz Matrix
Dec 03, 2024 3274. Check if Two Chessboard Squares Have the Same Color
Dec 03, 2024 224. Basic Calculator
Dec 02, 2024 52. N-Queens II
Dec 02, 2024 636. Exclusive Time of Functions
Dec 01, 2024 51. N-Queens
Dec 01, 2024 394. Decode String
Nov 29, 2024 1209. Remove All Adjacent Duplicates in String II
Nov 29, 2024 71. Simplify Path
Nov 28, 2024 1047. Remove All Adjacent Duplicates In String
Nov 27, 2024 266. Palindrome Permutation
Nov 26, 2024 447. Number of Boomerangs
Nov 25, 2024 1010. Pairs of Songs With Total Durations Divisible by 60
Nov 24, 2024 523. Continuous Subarray Sum
Nov 23, 2024 791. Custom Sort String
Nov 22, 2024 525. Contiguous Array
Nov 21, 2024 278. First Bad Version
Nov 20, 2024 219. Contains Duplicate II
Nov 19, 2024 14. Longest Common Prefix
Nov 18, 2024 1768. Merge Strings Alternately
Nov 17, 2024 1868. Product of Two Run-Length Encoded Arrays
Nov 17, 2024 986. Interval List Intersections
Nov 16, 2024 443. String Compression
Nov 14, 2024 26. Remove Duplicates from Sorted Array
Nov 13, 2024 16. 3Sum Closest
Nov 12, 2024 88.Merge Sorted Array
Nov 11, 2024 680.Valid Palindrome II
Nov 10, 2024 716.Max Stack
Nov 09, 2024 290.Word Pattern
Nov 08, 2024 1249.Minimum Remove to Make Valid Parentheses
Nov 07, 2024 1762.Buildings With an Ocean View LevelI
Nov 06, 2024 528.Random Pick with Weight
Nov 05, 2024 199.Binary Tree Right Side View
Nov 04, 2024 227.Basic Calculator II
Nov 02, 2024 1380. Lucky Numbers in a Matrix
Nov 01, 2024 953.Verifying an Alien Dictionary
Oct 31, 2024 5.Longest Palindromic Substring
Oct 30, 2024 31.Next Permutation
Oct 29, 2024 735.Asteroid Collision
Oct 28, 2024 Todo List
Oct 28, 2024 72.Edit Distance
Oct 26, 2024 75.Sort Colors
Oct 26, 2024 283.Move Zeroes
Oct 25, 2024 408.Valid Word Abbreviation
Oct 24, 2024 339.Nested List Weight Sum
Oct 23, 2024 973.K Closest Points to Origin
Oct 22, 2024 453.Minimum Moves to Equal Array Elements
Oct 21, 2024 122. Best Time to Buy and Sell Stock II
Oct 20, 2024 377.Combination Sum IV
Oct 19, 2024 236. Lowest Common Ancestor of a Binary Tree
Oct 19, 2024 215.Kth Largest Element in an Array
Oct 18, 2024 386.Lexicographical Numbers
Oct 16, 2024 349.Intersection of Two Arrays
Oct 14, 2024 2. Add Two Numbers
Oct 13, 2024 138.Copy List with Random Pointer
Oct 12, 2024 567.Permutation in String
Oct 11, 2024 853.Car Fleet
Oct 10, 2024 739.Daily Temperatures
Oct 09, 2024 Floyd's Algorithm for Finding Duplicate Number
Oct 08, 2024 22.Generate Parenthesesn
Oct 07, 2024 150.Evaluate Reverse Polish Notation
Oct 06, 2024 42.Trapping Rain Water
Oct 05, 2024 1143.Longest Common Subsequence
Oct 01, 2024 62.Unique Paths
Sep 29, 2024 300.Longest Increasing Subsequence
Sep 26, 2024 139.Word Break
Sep 25, 2024 152.Maximum Product Subarray
Sep 23, 2024 322.Coin Change
Sep 21, 2024 91.Decode Ways
Sep 18, 2024 647.Palindromic Substrings
Aug 19, 2024 198.House Robber II
Aug 17, 2024 198.House Robber
Aug 02, 2024 70.Climbing Stairs
Jul 14, 2024 261.Graph Valid Tree
Jul 13, 2024 207.Course Schedule
Jul 12, 2024 417.Pacific Atlantic Water Flow
Jul 11, 2024 133.Clone Graph
Jul 10, 2024 200.Number of Islands
Jul 09, 2024 79.Word Search
Jul 08, 2024 39.Combination Sum
Jul 07, 2024 253.Meeting Rooms II
Jun 28, 2024 435.Non-overlapping Intervals
Jun 25, 2024 56.Merge Intervals
Jun 16, 2024 57.Insert Interval
Jun 15, 2024 252.Meeting Rooms
Jun 02, 2024 55.Jump Game
Jun 01, 2024 53.Maximum Subarray
May 05, 2024 371.Sum of Two Integers
May 04, 2024 268.Missing Number
May 03, 2024 190.Reverse Bits
May 02, 2024 338.Counting Bits
May 01, 2024 191.Number of 1 Bits
Apr 06, 2024 73.Set Matrix Zeroes
Apr 05, 2024 54.Spiral Matrix
Apr 04, 2024 48.Rotate Image
Apr 03, 2024 212.Word Search II
Apr 02, 2024 211.Design Add and Search Words Data Structure
Apr 01, 2024 208.Implement Trie(Prefix Tree)
Mar 10, 2024 297.Serialize and Deserialize Binary Tree
Mar 09, 2024 124.Binary Tree Maximum Path Sum
Mar 08, 2024 105.Construct Binary Tree from Preorder and Inorder Traversal
Mar 07, 2024 98.Validate Binary Search Tree
Mar 06, 2024 102.Binary Tree Level Order Traversal
Mar 05, 2024 235.Lowest Common Ancestor of a Binary Search Tree
Mar 04, 2024 572.Subtree of Another Tree
Mar 03, 2024 230.Kth Smallest Element in a BST
Mar 02, 2024 104.Maximum Depth of Binary Tree
Mar 01, 2024 226.Invert Binary Tree
Feb 28, 2024 76. Minimum Window Substring
Feb 27, 2024 424. Longest Repeating Character Replacement
Feb 26, 2024 3. Longest Substring Without Repeating Characters
Feb 25, 2024 121. Best Time to Buy and Sell Stock
Feb 24, 2024 20. Valid Parentheses
Feb 23, 2024 19.Remove Nth Node From End of List
Feb 22, 2024 143. Reorder List
Feb 21, 2024 141.Linked List Cycle
Feb 20, 2024 21.Merging Linked Lists
Feb 19, 2024 206.Reverse Linked List
Feb 18, 2024 169.Majority Element
Feb 17, 2024 260.Single Number III
Feb 16, 2024 41.First Missing Positive
Feb 15, 2024 49.Group Anagrams
Feb 14, 2024 560.Subarray Sum Equals K
Feb 13, 2024 15.3Sum
Feb 12, 2024 977.Squares of a Sorted Array
Feb 11, 2024 167.Two Sum II - Input Array Is Sorted
Feb 10, 2024 11.Container With Most Water
Feb 09, 2024 125.Valid Palindrome
Feb 08, 2024 36.Valid Sudoku
Feb 07, 2024 242.Valid Anagram
Feb 06, 2024 347.Top K Frequent Elements
Feb 05, 2024 238.Product of Array Except Self
Feb 04, 2024 128.Longest Consecutive Sequence
Feb 03, 2024 659.Encode and Decode Strings
Feb 02, 2024 2357.Make Array Zero by Subtracting Equal Amounts
Feb 01, 2024 217.Contains Duplicate
Jan 21, 2024 287. Find the Duplicate Number
Jan 20, 2024 786. K-th Smallest Prime Fraction
Jan 19, 2024 719. Find K-th Smallest Pair Distance
Jan 18, 2024 668. Kth Smallest Number in Multiplication Table
Jan 17, 2024 378. Kth Smallest Element in a Sorted Matrix
Jan 16, 2024 4. Median of Two Sorted Arrays
Jan 15, 2024 1011. Capacity To Ship Packages Within D Days
Jan 14, 2024 875. Koko Eating Bananas
Jan 13, 2024 240. Search a 2D Matrix II
Jan 12, 2024 74. Search a 2D Matrix
Jan 11, 2024 69. Sqrt(x)
Jan 10, 2024 852. Peak Index in a Mountain Array
Jan 09, 2024 162.Find Peak Element
Jan 08, 2024 154.Find Minimum in Rotated Sorted Array II
Jan 07, 2024 153.Find Minimum in Rotated Sorted Array
Jan 06, 2024 81.Search in Rotated Sorted Array II
Jan 05, 2024 33.Search in Rotated Sorted Array
Jan 04, 2024 981.Time Based Key-Value Store
Jan 03, 2024 34.Search Insert Position
Jan 02, 2024 704.Binary Search
Jan 01, 2024 35.Search Insert
Dec 25, 2023 JDBCBatchUpdate
Sep 30, 2023 SORT
Sep 02, 2023 Levenshtein Distance Algorithm
Sep 01, 2023 Mastering Coin Change with Dynamic Programming
Aug 30, 2023 Union-Find
Aug 26, 2023 Prefix Sum
Aug 20, 2023 Morris
Aug 19, 2023 Reverse LinkedList
Aug 19, 2023 LRU LinkedList
Jun 14, 2023 Number Of Ways To Traverse Graph
Jun 13, 2023 Levenshtein Distance
Jun 12, 2023 Min Number Of Coins For Change
Jun 11, 2023 Number Of Ways To Make Change
Jun 10, 2023 Maximum sum of Non-adjacent nodes
Jun 09, 2023 Prim’s Algorithm
Jun 08, 2023 Kruskal's Algorithm
Jun 07, 2023 Topological Sort
Jun 06, 2023 Dijkstra's Algorithm
Jun 05, 2023 Union Find
Jun 04, 2023 Stable Internships
Jun 03, 2023 Kadane's Algorithm
Jun 02, 2023 Multi String Search
Jun 01, 2023 Suffix Trie Construction
May 26, 2023 Linked List Palindrome
May 25, 2023 Zip Linked List
May 24, 2023 Rearrange Linked List
May 23, 2023 LRU Cache
May 22, 2023 Shift Linked List
May 21, 2023 Merge Linked Lists
May 20, 2023 Reverse Linked List
May 19, 2023 Find Loop
May 18, 2023 Merging Linked Lists
May 17, 2023 Sum of Linked Lists
May 16, 2023 Remove Kth Node From End
May 15, 2023 Middle of the Linked List
May 14, 2023 Remove Duplicates From Linked List
May 13, 2023 Index Equals Value
May 12, 2023 Quick Select
May 11, 2023 Search For Range
May 10, 2023 Shifted Binary Search
May 09, 2023 Search In Sorted Matrix
May 08, 2023 Find Three Largest Numbers
May 07, 2023 Binary Search
May 06, 2023 Reverse Polish Notation
May 05, 2023 Next Greater Element
May 04, 2023 Sort Stack
May 03, 2023 Sunset Views
May 02, 2023 Balanced Brackets
May 01, 2023 Min Max Stack Construction
Apr 28, 2023 Pattern Matcher
Apr 27, 2023 Underscorify Substring
Apr 26, 2023 Longest Substring Without Duplication
Apr 25, 2023 One Edit Distance
Apr 24, 2023 Minimum Characters For Words
Apr 23, 2023 Reverse Words In String
Apr 22, 2023 Valid IP Addresses
Apr 21, 2023 Group Anagrams
Apr 20, 2023 Longest Palindromic Substring
Apr 19, 2023 Semordnilap
Apr 18, 2023 First Non-Repeating Character
Apr 17, 2023 Generate Document
Apr 16, 2023 Run-Length Encoding
Apr 15, 2023 Common Characters
Apr 14, 2023 Caesar Cipher Encryptor
Apr 13, 2023 Palindrome Check
Apr 12, 2023 Valid Starting City
Apr 11, 2023 Task Assignment
Apr 10, 2023 Tandem Bicycle
Apr 09, 2023 Class Photos
Apr 08, 2023 Minimum Waiting Time
Apr 07, 2023 Radix Sort
Apr 06, 2023 Heap Sort
Apr 05, 2023 Quick Sort
Apr 04, 2023 Three Number Sort
Apr 03, 2023 Selection Sort
Apr 02, 2023 Insertion Sort
Apr 01, 2023 Bubble Sort
Mar 22, 2023 Boggle Board
Mar 21, 2023 Two-Colorable
Mar 20, 2023 Minimum Passes Of Matrix
Mar 19, 2023 Cycle In Graph
Mar 18, 2023 Remove Islands
Mar 17, 2023 Youngest Common Ancestor
Mar 16, 2023 River Sizes
Mar 15, 2023 Breadth-first Search
Mar 14, 2023 Single Cycle Check
Mar 13, 2023 Depth-first Search
Mar 12, 2023 Find Nodes Distance K
Mar 11, 2023 Max Path Sum In Binary Tree
Mar 10, 2023 Split Binary Tree
Mar 09, 2023 Symmetrical Tree
Mar 08, 2023 Merge Binary Trees
Mar 07, 2023 Height Balanced Binary Tree
Mar 06, 2023 Find Successor
Mar 05, 2023 Binary Tree Diameter
Mar 04, 2023 Invert Binary Tree
Mar 03, 2023 Evaluate Expression Tree
Mar 02, 2023 Node Depths
Mar 01, 2023 Branch Sums
Feb 09, 2023 Validate Three Nodes
Feb 08, 2023 Same BSTs
Feb 07, 2023 Reconstruct BST
Feb 06, 2023 Find Kth Largest Value In BST
Feb 05, 2023 Min Height BST
Feb 04, 2023 BST Traversal
Feb 03, 2023 Validate Binary Search Tree
Feb 02, 2023 BST Construction
Feb 01, 2023 Find Closest Value In BST
Jan 23, 2023 Count Squares
Jan 22, 2023 Zigzag Traverse
Jan 21, 2023 Min Rewards
Jan 20, 2023 Largest Range
Jan 19, 2023 Subarray Sort
Jan 18, 2023 Four Number Sum
Jan 17, 2023 Best Seat
Jan 16, 2023 Missing Numbers
Jan 15, 2023 Zero Sum Subarray
Jan 14, 2023 Merge Overlapping Intervals
Jan 13, 2023 First Duplicate Value
Jan 12, 2023 Array Of Products
Jan 11, 2023 Longest Peak
Jan 10, 2023 Spiral Traverse
Jan 09, 2023 Monotonic Array
Jan 08, 2023 Move Element To End
Jan 07, 2023 SmallestDifference
Jan 06, 2023 Three Number Sum
Jan 05, 2023 Non-Constructible Change
Jan 04, 2023 Tournament Winner
Jan 03, 2023 Sorted Squared Array
Jan 02, 2023 Validate Subsequence
Jan 01, 2023 Two Number Sum-Easy
Nov 02, 2022 Designing a Tiny URL
Nov 01, 2022 What happens when you type URL in your browser
Oct 09, 2022 When to use the different log levels
Sep 02, 2022 System Design学习
Sep 01, 2022 System Design面试建议
Aug 16, 2022 如何写一个并行调用模版
Aug 15, 2022 架构设计之徽服务拆分
Aug 14, 2022 如何设计好一个接口
Aug 13, 2022 手写LRU
Aug 12, 2022 如何实现订单主动过期释放
Aug 11, 2022 阿里云短信验证服务
Aug 10, 2022 日志的使用
Aug 09, 2022 如何高效对接第三方支付
Aug 08, 2022 如何设计一个高并发场景
Aug 07, 2022 图片验证码功能
Aug 06, 2022 xxljob分布式定时任务框架与系统的接入
Aug 05, 2022 如何设计一个站内消息系统?
Aug 04, 2022 如何设计一个秒杀系统?
Aug 03, 2022 如何设计一个短链系统?
Aug 02, 2022 如何解决网站大文件上传问题?
Aug 01, 2022 如何统计网站UV?
Jul 03, 2022 五门CS基础课推荐
Jul 02, 2022 湾区大厂程序员薪水构成level和对应期望
Jul 01, 2022 如何做编程知识投资及减少知识失效的影响
Jun 25, 2022 输入URL页面没出现如何排查
Jun 25, 2022 JWT基础
Mar 01, 2022 Binary Search Universal Formula
Feb 06, 2022 分布式系統接口如何避免表单的重复提交
Feb 05, 2022 Zookeeper实现分布式锁
Feb 04, 2022 TCC实例
Feb 03, 2022 基于rocketmq的分布式事务
Feb 02, 2022 分布式事务解决方案Part2
Feb 01, 2022 分布式事务解决方案Part1
Jan 04, 2022 PythonDay1
Jan 03, 2022 LinuxDay3
Jan 02, 2022 LinuxDay2
Jan 01, 2022 LinuxDay1
Dec 16, 2021 里氏替换原则
Dec 15, 2021 迪米特法则
Dec 14, 2021 接口分离原则
Dec 13, 2021 依赖倒置原则
Dec 12, 2021 单一原则
Dec 11, 2021 开闭原则
Dec 10, 2021 面向对象设计原则
Dec 09, 2021 单例模式
Dec 08, 2021 适配器模式
Dec 07, 2021 建造者模式
Dec 06, 2021 抽象工厂模式
Dec 05, 2021 简单工厂模式
Dec 04, 2021 工厂方法模式
Dec 03, 2021 创建型设计模式
Dec 02, 2021 UML类图
Dec 01, 2021 面向对象的设计过程
Nov 03, 2021 ElasticSearch部署
Nov 01, 2021 ElasticSearch基础
Oct 15, 2021 表驱动法
Oct 14, 2021 本地jar引入到maven方式
Oct 13, 2021 Windows10关闭端口占用进程
Oct 12, 2021 js上精度丢失解决方案
Oct 11, 2021 Linux环境下安装svn
Oct 06, 2021 消息的延时以及失效问题
Oct 05, 2021 如何处理消息丢失的问题
Oct 04, 2021 如何保证消息队列的高可用
Oct 03, 2021 消息的幂等性
Oct 02, 2021 消息的顺序性
Oct 01, 2021 MQ基础
Sep 12, 2021 如何高效的使用 Git
Sep 11, 2021 搭建SpringCloud项目
Sep 10, 2021 Spring与Redis通信设计结构图
Sep 08, 2021 Springboot自动装配原理
Sep 07, 2021 SpringBoot
Sep 06, 2021 Spring循环依赖
Sep 05, 2021 Spring的生命周期
Sep 04, 2021 Spring手写实现AOP
Sep 03, 2021 Spring的AOP
Sep 02, 2021 Spring的IOC启动过程
Sep 01, 2021 Spring基础
Aug 15, 2021 Solving problems from scratch
Aug 14, 2021 Architecture Design
Aug 13, 2021 Final
Aug 12, 2021 Design Pattern
Aug 11, 2021 Distributed
Aug 10, 2021 MQ
Aug 09, 2021 Spring
Aug 08, 2021 Computer
Aug 07, 2021 Redis
Aug 05, 2021 Jvm
Aug 04, 2021 Thread
Aug 03, 2021 Collection
Aug 02, 2021 Base
Aug 01, 2021 MYSQL
Aug 01, 2021 Interview
Jul 04, 2021 JVM调优工具与调优实战
Jul 03, 2021 Java线上问题排查思路与工具
Jul 02, 2021 JVM之类加载与双亲委派
Jul 01, 2021 JVM基础
Jun 04, 2021 IO模型
Jun 03, 2021 为什么TCP建立连接需要三次握手
Jun 02, 2021 TCP的三次握手与四次挥手
Jun 01, 2021 计算机网络基础
May 10, 2021 CountDownLatch
May 09, 2021 AQS源码分析
May 08, 2021 AbstractQueuedSynchronizer
May 07, 2021 ReentrantLock
May 06, 2021 Synchronized
May 05, 2021 Volatile
May 04, 2021 ThreadLocal
May 03, 2021 锁的分类
May 02, 2021 线程池业务中的实践
May 01, 2021 线程池
Apr 14, 2021 Redis工具类
Apr 13, 2021 跳表
Apr 12, 2021 布隆过滤器的实现
Apr 11, 2021 分布式锁对比
Apr 10, 2021 Redis实现分布式锁与Redisson
Apr 09, 2021 Redis实现的分布式锁2
Apr 08, 2021 Redis实现的分布式锁
Apr 07, 2021 Redis哈希槽实战
Apr 06, 2021 RedisCluster
Apr 05, 2021 Redis集群解决方案
Apr 04, 2021 Redis主从架构
Apr 03, 2021 Redis如何做到高可用
Apr 02, 2021 Redis的基本数据类型
Apr 01, 2021 Redis基础
Mar 13, 2021 MYSQL排查问题
Mar 12, 2021 读写分离
Mar 11, 2021 分库分表做到永不迁移数据和避免热点
Mar 10, 2021 分库分表实战
Mar 09, 2021 分库分表
Mar 08, 2021 MYSQL的主从复制
Mar 07, 2021 MVCC多版本并发控制
Mar 06, 2021 MySQL优化建议
Mar 05, 2021 MySQL查出重复的记录
Mar 04, 2021 MySQL的七种JOIN
Mar 03, 2021 MySQL如何被执行的
Mar 02, 2021 MYSQL常见问题
Mar 01, 2021 MYSQL基础
Feb 04, 2021 ConcurrentHashMap
Feb 03, 2021 HashMap死循环原因
Feb 02, 2021 HashMap
Feb 01, 2021 ArrayList与LinkedList
Jan 03, 2021 Java8Stream流递归树遍历
Jan 02, 2021 ElasticSearch概念
Jan 02, 2021 序列化与反序列化
Jan 01, 2021 注解与反射