Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
https://leetcode.com/problems/trapping-rain-water/
Solution
Double Link
Code
submit code
class Solution:
def trap(self, height: List[int]) -> int:
if len(height)<3:
return 0
ret = 0
......
Reason
Recently, I have been configuring a second-level domain name, and then I tried to configure a private email for myself to use as a contact email for my personal blog.
premise
Pagoda Panel
A server that can open 25 and other ports I heard that domestic servers have blocked these ports, I use Bricklayer, I just started testing my own server. T......
Data
Github/YOUTUBE_studying
draw
import pandas as pd
unrate = pd.read_csv('DATA.csv')
unrate['DATE'] = pd.to_datetime(unrate['DATE']) # date format conversion
print(unrate.head(12))
# drawing equipment
import matplotlib.pyplot as plt
#%matplotlib inline
#Using the diffenent pyplot functions, we can create, customize, and display a plot . For example, we can use
# plt.plot() # draw......
Reason
Been looking for a free domain name and found this second-level domain name, but didn't figure it out at first! The application has been successful in the past month or so! This led to the idea of writing an article to fill in the missing or outdated tutorials!
This domain name has existed for a long time. The official name is EU.org, a free......
recently added a few servers for fun, now there are two hosts are having a database on the thought of getting a master-slave replication to serve as a backup of data, how important this data is without me saying it!
Master node configuration
Operation on the host
The master adds the following to the database configuration file and turns on binlog......