High frequency algorithm (real interview question)
High frequency algorithm interview questions
★★★ bubble sorting
Compare two from the start position for n rounds
Basic Edition function bubbleSort (arr) {
// Execute round i + 1
for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < arr.length - 1; j++) {
// Compare the former with the latter in pairs
if (arr[j] & ...
Posted by pcbytes on Fri, 14 Jan 2022 17:11:23 +0100
Java learning notes - browser event model
conceptEvents are actions or events that occur in the system during programming. After the system responds to events, you can respond to events in some way if necessary. In the Web, events are triggered in the browser window and are usually bound to a specific part of the window - possibly an element, a series of elements, HTML code loaded int ...
Posted by Nexus10 on Fri, 14 Jan 2022 13:32:58 +0100
BootStrap framework module: BootStrap 4 Foundation
Introduction to BootStrap
Bootstrap It is the most popular front-end open source tool library in the world. It supports Sass hybrid, responsive matrix system and its own library component and component JavaScript. Bootstrap provides powerful functions that enable you to quickly design and customize your website.
Use Bootstrap CDN and one of ...
Posted by TransmogriBenno on Fri, 14 Jan 2022 10:50:46 +0100
web front end foundation - jquery event operation and animation
catalogue
1. jQuery node insertion
1.1 internal node insertion method
1.2 external insertion node method
2. jQuery binding event
3. jQuery animation effect
1. jQuery node insertion
In the process of creating nodes, in fact, we have demonstrated how to pass The append() method to insert a node. But except
Besides this method, jQuery ...
Posted by selliott on Fri, 14 Jan 2022 06:36:28 +0100
[JavaScript] basic of process control statement
preface
Obviously, the sequence of program execution has a significant impact on the running results of the program, so the process control statement was born. It has three basic structures: sequence structure, selection structure and loop structure.
Sequential structure: code is executed from top to bottom.Select structure: perform di ...
Posted by johndale on Fri, 14 Jan 2022 06:27:42 +0100
DOM events and event delegates
Click event
In 2002, W3C released the DOM Level 2 Events Specification
Specify that the browser needs to support two call sequences at the same time:
First, see if there is function monitoring in the order of Grandpa = > dad = > son
Then see if there is function monitoring in the order of son = > father = > Grandpa
Call ...
Posted by bhanu on Fri, 14 Jan 2022 01:14:56 +0100
25 Vue skills have been developed for 5 years, and some of them are the first time to see you!
By Michael Thiessen Translator: front end Xiaozhi Source: dev
There are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.
This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials ...
Posted by pastijalan on Thu, 13 Jan 2022 23:26:10 +0100
[data structure and algorithm] JavaScript data structure and algorithm reading notes
1. Introduction to JavaScript
2. ECMAScript and TypeScript overview
2.2.7 object oriented programming using classes
class Book {
constructor(title, pages, isbn) {
this.title = title
this.pages = pages
this.isbn = isbn
}
printTitle() {
console.log(this.title)
}
}
let book = new Book('title', 'p ...
Posted by angershallreign on Thu, 13 Jan 2022 16:09:07 +0100
Bootstrap practice - registration and login
1, Introduction
Registration and login is an essential part of social and business websites.
2, Knowledge points
2.1 tab
2.1.1 basic tab
The use of the tab is similar to that of the navigation bar. At the same time, it depends on the basic style nav. The difference is that the additional style becomes nav tabs and nav pills (capsule), and there ...
Posted by Solemn on Thu, 13 Jan 2022 15:44:24 +0100
Front end page rendering optimization -- performance tool analysis and optimization
First of all, this is a code run to calculate the optimization of a large number of logic.
(1) Scene
When there is a lot of logical calculation of data in JSNon static resource optimizationCode level optimization
(2) Tools
The performance of Chrome Devtools can be found by pressing F12 in the browser.
(3) Situation
When our page is carryi ...
Posted by vishi83 on Thu, 13 Jan 2022 14:44:40 +0100