[easily understand design mode] the responsibility chain mode used by large factories
I'm kangarooking, not my brother's brother. An Internet worm "gua" cow, climb up step by step with you, and one day there will be a day for us. Pay attention to me and make a little progress every day ❗ ❗ ❗Foreword (flicker)After reading the source code of some open source frameworks, I found that the responsibility chain model is ...
Added by mattonline on Sat, 12 Feb 2022 10:07:06 +0200
Glide source code analysis and three-level cache principle
Glide is an open source image loading library for Android, which can help us download, cache and display images in various formats. It is also one of the mainstream image loading frameworks. How to realize the internal source code? Explain the main process and make a brief analysis.
The usage is as follows:
Glide.with(context).load(url).into ...
Added by Far Cry on Sat, 12 Feb 2022 09:47:41 +0200
[YBT2022 winter vacation Day6 C] [luogu CF1063F] substring selection / String Journey (SAM) (line segment tree) (multiplication)
Substring selection / String Journey
Title Link: YBT2022 winter vacation Day6 C / luogu CF1063F
General idea of the topic
Give you a string. If you want to find the maximum K satisfaction, you can choose k disjoint substrings from left to right at a time to meet that the former is the real substring of the latter.
thinking
First of all, le ...
Added by jrose83 on Sat, 12 Feb 2022 09:10:21 +0200
GDUT ACM2022 winter vacation training topic II D E (01 backpack)
For a better reading experience, please go to: Paxton's little broken station
1, 01 Backpack
01 backpack is to take out several items from M items and put them in a backpack with space W. the volume of each item is W1, W2 to Wn, and the corresponding value is P1,P2 to Pn. 01 knapsack is the simplest problem in knapsack problem. 01 the ...
Added by Bijan on Sat, 12 Feb 2022 09:00:17 +0200
Tencent Serverless experience, using TypeScript to write and deploy cloud functions
Introduction to cloud functionCloud base, a one-stop efficient development platform: https://curl.qcloud.com/JcBqSTMlThe Serverless Cloud Function (SCF) is the Serverless execution environment provided by Tencent cloud.Simply write a simple, single purpose cloud function to associate it with events generated by Tencent cloud infrastructure and ...
Added by lead2gold on Sat, 12 Feb 2022 08:46:13 +0200
Development and application of fcitx function plug-in
Add plug-ins to Fcitx framework
Fcitx plug-ins can be divided into four categories:
1.Frontend
2.Input Method
3.Module
4.User Interface
Frontend plug-in is responsible for interface key messages and passing them to Fcitx framework,
InputMethod plug-in is responsible for converting keyboard input into their language information, which is ...
Added by jwhite68 on Sat, 12 Feb 2022 08:41:06 +0200
Online interviewer | don't ask me any more
This issue is the second issue of the [Online interviewer] series, which mainly focuses on high-frequency interview questions.Reply to [interview] obtain Dabin's carefully sorted interview Manual of the big factory, which has helped many small partners win big factory offer s!Interview siteInterviewer: Hello, this is interviewer xxx. Are you Da ...
Added by mikegzarejoyce on Sat, 12 Feb 2022 08:35:47 +0200
Multiple knapsack and its optimization
Problem description
There are n kinds of goods, which have their own volume, value and certain quantity. How to maximize the total value of the items loaded in the backpack with a given capacity?
Algorithmic thought
Before solving the problem, for the convenience of description, first define some variables: vi represents the value of the ith ...
Added by yurko on Sat, 12 Feb 2022 08:25:19 +0200
Python play with data simple distributed crawler
1, Explain
Although there are many things that can be done by scratch, it is difficult to achieve large-scale distributed applications. Someone has changed the queue scheduling of the sweep and changed the starting URL from start_ It is separated from URLs and read from redis instead. Multiple clients can read the same redis at the same time, ...
Added by eranwein on Sat, 12 Feb 2022 08:24:48 +0200
Prepare for 2022 spring move - java-day8
java
What are strong reference, soft reference, weak reference and virtual reference?
Strong reference (default support mode): when the memory is insufficient, the JVM starts garbage collection. For strongly referenced objects, even if there is OOM, the object will not be recycled and will not be collected.Soft reference: when the system me ...
Added by ixos on Sat, 12 Feb 2022 08:03:20 +0200