Algorithm: Leetcode Contest 418
3309. Maximum Possible Number by Binary Concatenation
3309. Maximum Possible Number by Binary Concatenation
3304. Find the K-th Character in String Game I
3282. Reach End of Array with Max Score
3265. Count Almost Equal Pairs I
3259. Maximum Energy Boost From Two Drinks
3248. Snake in Matrix
3242. Design Neighbor Sum Service
Find if Digit Game Can Be Won
3216. Lexicographically Smallest String After a Swap
3211. Generate Binary Strings Without Adjacent Zeros
3200. Maximum Height of a Triangle
3195. Find the Minimum Area to Cover All Ones I
3185. Count Pairs That Form a Complete Day II
3179. Find the N-th Value After K Seconds
3169. Count Days Without Meetings
3152. Special Array II
3147. Taking Maximum Energy From the Mystic Dungeon
3132. Find the Integer Added to Array II
Maximum Prime Difference
3105. Longest Strictly Increasing or Strictly Decreasing Subarray
3100. Water Bottles II
3092. Most Frequent IDs
3084. Count Substrings Starting and Ending with Given Character
3075. Maximize Happiness of Selected Children
3070. Count Submatrices with Top-Left Element and Sum Less Than k
3046. Split the Array
Find the Length of the Longest Common Prefix
First Happy Chinese New Year!
3029. Minimum Time to Revert Word to Initial State I
This time I only solved one medium problem
Challenge 2
This time there are two interesting challenges, one is the follow-up of another.
What is KMP
Challenges
what is monotone stack?
What is Sliding Window?
2952. Minimum Number of Coins to be Added You are given a 0-indexed integer array coins, representing the values of the coins available, and an integer targe...
this contest has 3 problems which related to array-like structure, another 1 problem is bit manipulation, I will ignore this one.
From today I will try to participate the Leetcode weekly contest and share my solution here
Robot Move Issue
Dynamic Programming would be nightmare for all coders…
What is Union Find
What is a Greedy Algorithm?
We already explored several problem relating to Trees, in this article I would introduce more typical tree problems
Given a Tree Node, find its direct successor based different Traversal Type
Data Structure: List
Trie Tree
Merge Sort
In digital wallet servce, user can store money in wallet and spend it later.
A reliable, scalable and flexible payment system is essential.
In this article we will design a real time leaderboard for an online gaming.
Let’s design a large-scale distributed email service like Gmail or outlook.
In this article we will discuss how to design a hotel reservation system, actually this design solution is applicable to all booking-related interview topics...
One core benefit of online advertising is its measurability.
Step1: Scope the problem
Google maps helps user find directions and navigate to their destination, and it has enormous complexity of google map, it’s important to nail down which fea...
Message queue provide communication and coordination for those building blocks.
Yelp is a typical app of “proximity service”, which is used to discover nearby place such as restaurant, hotels etc.
For the opt-in users who grants the permission to access their location, the mobile client present a list of friends who are geographically nearby.
Everyone knows youtube, it has a very rich features and impossible to cover all of them in a single article.
Recently years cloud storage has been more and more popular, google drive is one of the most popular among them, let’s use it as example to understand some d...
Type Ahead system can also be called “auto-complete” or “incremental search”system etc.
Step1: Scope the problem
What is News Feed?
A notification system can alert user with important information like breaking news offers.
Step1 : Understanding the problem
What is a K-V store?
What is Blob Store?
What is Rate Limiter?
Why we need logging?
What we need search system?
What is a task scheduler?
Motivation
What is pub-sub system?
What is Load Balancing
I would say, Database is the most important component in a system, when you design a system, and you don’t consider a lot regarding the database, then the de...
System Design is a process of defining components and their integrations, to build a large-scale system that meets the specific set of functional and non-fun...
DNS, is the abbreviation of Domain Name System
this article will cover the HA solution for Hadoop under Fully Distributed.
nodes ip NameNode DataNode Secondary NameNode node01 192.168.157.11 ✅ ...
this article covers how to setup Hadoop as Pseudo-distributed Operation
pre-requisite:
pre-requisite:
What is Map Reduce
What is HDFS
What is HDFS
In this article, I will introduce how to build a docker image
This article will introduce the basic usage of docker, including how to setup, how to initiate a container from image
In this article I will introduce some usage of redis CLI.
In this article I will introduce how to install a Redis into Linux and make it as a service
This article will cover some common setups before you can work or learn on Linux Platform.
Steps
From Reflection to Proxy
What is Spring?
What is Graph?