JS some common array syntax (ES5, ES6, ES7)

Some of Math's 1,Math.abs(x) Meaning: returns the absolute value of x Application scenario: make 0.1 + 0.2 = = 0.3 Method: set an error range value, which is usually called "machine precision". For Javascript, this value is usually 2 ^ - 52. In ES6, we have provided such an attribute: number Epsilon, and this value is exactly equal ...

Posted by vipul73 on Sat, 02 Apr 2022 10:16:37 +0300

Daily algorithm & interview questions, 28 days of special training in large factories - the 24th day (operator)

Reading guide Fat friends, in order to better help new students adapt to algorithms and interview questions, we recently started a special assault step by step. In the last issue, we completed 21 days of dynamic programming, and now we will make a 28 day summary of various algorithms. What are you waiting for? Come and have a 28 day chal ...

Posted by cedtech31 on Sat, 02 Apr 2022 06:24:59 +0300

I thought I was proficient in Android event distribution mechanism, but I was stunned by the interviewer

The source code in the article is based on 8.0 preface Event distribution mechanism is not only the core knowledge point, but also the difficulty. It is also a major problem of View and the theoretical basis of sliding conflict resolution. Therefore, it is very important to master the event distribution mechanism of View. 1, Basic understa ...

Posted by viraj on Fri, 01 Apr 2022 04:08:43 +0300

What is the difference between alicbarrier and CountDownLatch

introduction Our previous article CountDownLatch, the three powerful tools of Java high concurrency programming foundation It has a disadvantage that its counter can only be used once, that is, when the counter (state) is reduced to 0, if another thread calls the await() method, the thread will pass directly and will not wait for the execution ...

Posted by MarkR on Fri, 01 Apr 2022 02:26:14 +0300

[gold, silver and silver] summary of common questions in Js interview

Summarize some knowledge of front-end js, sort out the notes and share with you. Some knowledge will often be asked during the front-end interview, so make a record and hope to be helpful to you. If you have any questions, you can point out and actively correct them.If you like, you can like or leave a message. I will continue to update the int ...

Posted by curtm on Wed, 30 Mar 2022 09:48:10 +0300

Interview | JS classic interview questions (this, closure, prototype...) With answers

Code words are not easy, and helpful classmates hope to be able to pay attention to my WeChat official account: Code program life, thank you! Code self use and self access. Mind map 1, Variable promotion Interview questions 1. Ask the following output results if( !("a" in window) ){ var a = 12 } console.log(a) // undefined ...

Posted by rotarypot on Wed, 30 Mar 2022 01:23:01 +0300

Completable future in Java 8 is so easy to use! Share all 20 examples

For asynchronous programming in Java, you don't have to use rxjava. The completable future in Java's own library can cope with most scenarios. This article introduces the CompletionStage API of Java 8 and the implementation of its standard library, completable future. The API demonstrates its behavior through examples, and each example demon ...

Posted by Robert Elsdon on Tue, 29 Mar 2022 23:28:14 +0300

Sprint spring move - selected pen interview 66 questions day22 (end)

day22 topic: 151. Reverse the words in the string,46. Full arrangement,2. Add two numbers Today's knowledge points: string, recursion and linked list. The difficulty is medium, medium and medium Learning plan link: Sprint spring move - selected pen interview 66 questions pass Yesterday's topic link: Sprint spring move - selected pen intervie ...

Posted by wefollow on Tue, 29 Mar 2022 13:55:22 +0300

Interviewer: how to optimize JVM (with real case)

preface Interviewer: have you ever done JVM tuning at work? What JVM tuning have you done? I have a project with a QPS of less than 10. Last time I was asked about cache penetration avalanche, this time I was asked about JVM tuning. It was really difficult for me. But don't panic. I've got a few full marks for you. You can choose the right ...

Posted by shruti on Mon, 28 Mar 2022 03:18:25 +0300

Glide4.11 source code analysis

Glide The process of with (activity) method obtains the RequestManager object and combs out the process of binding the RequestManager and Fragment life cycle. In this article, let's take a look at the load ing process of RequestManager. RequestBuilder<Drawable> builder = requestManager.load("http://www.xxx.com/pic") First, let's see what ...

Posted by hmvrulz on Sat, 26 Mar 2022 14:05:21 +0300