Analysis of leetcode problem solving ideas (100) 860 - 866 questions

Lemonade change At the lemonade stand, each glass of lemonade costs $5. Customers line up to buy your products (in the order of bill payment) one cup at a time. Each customer buys only one glass of lemonade and pays you $5, $10 or $20. You must give each customer the correct change, that is, the net transaction is that each customer pays you $5 ...

Posted by modcar on Mon, 06 Dec 2021 14:36:55 -0800

Principle of distributed algorithm

Common generation strategies of distributed ID The common distributed ID generation strategies are as follows: Database autoincrement ID.UUID generation.Redis's atomic self increasing mode.Split the database horizontally, and set the initial value and the same self increasing step size.Self increment ID for batch application.Snowflake algorit ...

Posted by formlesstree4 on Sun, 05 Dec 2021 21:39:01 -0800

Multithreaded interview notes sorted by Zhang

The content may be sloppy, but they are all basic and important things that I think, and they also involve two multi-threaded interview questions Multithreading Process process Thread thread The program is static Process is an execution process of a program. It is a dynamic concept. A process will have multiple threads that do not affect ea ...

Posted by bivaughn on Sun, 05 Dec 2021 17:15:15 -0800

Introduction to synchronized keyword (autumn move) -- Part I

1, Mental process In Java Concurrent Programming, the synchronized keyword is undoubtedly a frequently asked question. During the interview, many interviewers pay more attention to your understanding of the synchronized keyword and its underlying. If you can answer it, it will undoubtedly add points. The following is what I learned through mys ...

Posted by noaksey2000 on Fri, 03 Dec 2021 05:03:15 -0800

leetcode essence of algorithm interview in Dachang 13. Monotone stack

leetcode essence of algorithm interview in Dachang 13. Monotone stack Video Explanation (efficient learning): Click to learn catalog: 1. Introduction 2. Time and space complexity 3. Dynamic planning 4. Greed 5. Binary search 6. Depth first & breadth first 7. Double pointer 8. Sliding window 9. Bit operation 10. Recursion & d ...

Posted by Jyotsna on Wed, 01 Dec 2021 14:41:11 -0800

Self test, 7 interview questions about closure

More articles are detailed in the official account [front end css and js dry cargo].Every JavaScript developer must know what a closure is. In JavaScript coding interviews, closures are often asked.This article has compiled a list of seven interesting and increasingly difficult questions about JavaScript closures.Take a pencil and a piece of pa ...

Posted by john6384 on Mon, 29 Nov 2021 18:48:44 -0800

Understand the basic Object classes in Java

1, Object description Source code note: the Object class is the Root node of the hierarchical relationship of all classes. As the superclass of all classes, including arrays, it also implements the methods of this class. Note that what is said here is very clear, referring to the class level. Therefore, there is a common saying in Java that e ...

Posted by d_barszczak on Mon, 29 Nov 2021 00:23:38 -0800

Offset analysis function of MySQL advanced application window function

  preface This article will explain the offset analysis function + over() through an example 1, Concept of offset analysis function lag(col,n,default): used to count the value of the nth row up in the group. The first parameter is the column nameThe second parameter is the nth line up (optional, not filled in, default to 1)The third ...

Posted by rhosk on Sun, 28 Nov 2021 16:41:27 -0800

How to design an awesome API interface

In daily development, there are always various interfaces. Front and rear end data transmission interfaces, third-party service platform interfaces. The front and rear data transmission interfaces of a platform generally communicate in the Intranet environment and use the security framework, so the security can be well protected. This article f ...

Posted by RobbertvanOs on Sun, 28 Nov 2021 05:18:49 -0800

Summary of JS interview questions

Previous points here: ↓ Summary of JS interview questions (I) Summary of JS interview questions (II) Summary of JS interview questions (III) Summary of JS interview questions (IV) Summary of JS interview questions (V) Summary of JS interview questions (6) Summary of JS interview questions (VII) 71. What is the compatibility between IE and ...

Posted by sadaf on Sat, 27 Nov 2021 23:55:37 -0800