Tag:element

  • Learning notes of set and map

    Time:2020-10-30

    Personal understanding: set is similar to one-dimensional array, and map is similar to two-dimensional array or object Similarities The feeling is that there are several basic attributes and methods with the same name and function: The size attribute returns the number of elements Clear clears all elements Delete removes the specified element Foreach traverses data […]

  • Dependencymanagement and dependencies in maven

    Time:2020-10-30

    Maven uses the < dependency Management > element to provide a way to manage dependency version numbers, which is usually seen in the top-level parent POM of a project. Using the < dependency Management > element enables all child projects to refer to a dependency without explicitly listing the version number. The child project Maven […]

  • Don’t underestimate the fact that only one question can reveal the candidates’ true colors!

    Time:2020-10-30

    preface According to incomplete statistics(In fact, I counted my friends and colleaguesMobile phone tiktok or fast hand short video APP, the longest time spent on mobile phones is micro-blog and Kwai circle. I often see this kind of thing when I brush my microblog and visit my circle of friends It has a tall Name: […]

  • Ring progress bar component of taro applet

    Time:2020-10-30

    /src/components/CanvasProgress/index.jsx import Taro from “@tarojs/taro”; import React from “react”; import { View, Canvas, Image } from “@tarojs/components”; import styles from “./styles.module.less”; class CanvasProgress extends React.Component { static defaultProps = { Style: {}, // container style Progress: 0.6, // progress [0-1] BackgroundColor: “#cccccccc”, // background ring color Linecolor: “ා02a101”, // foreground ring color Linewidth: 5, // […]

  • Building a custom angular2 input component

    Time:2020-10-30

    Building a custom angular2 input component Today we’ll learn how to build and build a<input type=”text”>The same function, but also has its own logical input components. Before reading this article, I hope you have read the official documents and cases at least once. Some specific concepts and details will not be explained in the article. […]

  • Set and map notes

    Time:2020-10-29

    Personal understanding: set is similar to one-dimensional array, and map is similar to two-dimensional array or object Similarities The feeling is that there are several basic attributes and methods with the same name and function: The size attribute returns the number of elements Clear clears all elements Delete removes the specified element Foreach traverses data […]

  • From the nature of red black tree, a thorough understanding of red black tree!

    Time:2020-10-29

    preface Good morning. This is tongge. In the previous section, we talked about the red black tree all the way from binary tree, binary search tree, balance tree, AVL tree, 2-3 tree, 2-3-4 tree, B tree, and finally came to the essence of red black tree: red black tree is 2-3-4 tree, please see the […]

  • Performance optimization of simple LRU elimination algorithm

    Time:2020-10-29

    preface Java implements redis from zero handwriting? Java realizes redis from zero handwriting How to restart memory data without losing it? Java realizes redis from zero handwriting Another way to realize the expiration policy of redis (5) from zero handwriting in Java Java realizes redis from zero handwriting We have implemented several features of redis,Java […]

  • CSS world 4 chapters

    Time:2020-10-29

    Chapter 4 four family of box size The four boxes in the box size, content box, padding box, border box and margin box correspond to the content, padding, border and margin attributes in CSS world respectively. 4.1 in depth understanding of content 4.1.1 content and replacement elements 1. What are replacement elements According to whether […]

  • After class questions of Chapter 3 of essential C + +

    Time:2020-10-29

    Exercise 3.1 #include<iostream> #include<fstream> #include<iterator> #include<vector> #include<set> #include<map> int main() { std::ifstream in_file(“news.txt”); std::ofstream out_file(“news_word_cnt.txt”); if (!in_file || !out_file) { std::cout << “can not read/write file” << std::endl; } //Create a new vector and use the generic algorithm copy to fill in the vector std::vector<std::string> text; std::string useless_words[3] = {“a”, “and”, “is”}; std::set<std::string> useless_set(useless_words, useless_words […]

  • Flink stream processing concept — time Semantics — trigger

    Time:2020-10-28

    Window operation of Flink For Flink’s window operation, especially the window operation based on event time, we still need to master three important knowledge points: Window allocator: it determines which window the data flowing into the Flink belongs to. Timestamp extractor / watermark generator: extracts time stamp and drives the program to execute normally. Trigger: […]

  • Look at animation algorithm: sort cardinal sort

    Time:2020-10-28

    brief introduction In the previous article, we talked about count sorting, but there is a limitation on count sorting, because the count array is limited. If the range of elements in the array is too large, it is unrealistic to use count sort, and its time complexity will expand. And the solution to a wide […]