Tag:Children
-
Time:2021-1-14
Every step is a thousand miles reflect How to handle exceptions? Do you want to inherit node types? Do a good job of testing the function of a single function, the sooner the better. How to find boundary values and negative examples? Don’t do superfluous things with a function, just do one thing well. Details […]
-
Time:2021-1-8
The basic concept of tree Storage structure of tree Parenting notation Suppose that the nodes of the tree are stored in a group of continuous spaces, and an indicator is set in each node to indicate the position of the parent nodes in the array //Node struct Node{ Element data; Int parent; // parent position […]
-
Time:2020-12-7
Vue gets DOM, data monitor, component, mix and slot Note: “is the abbreviation of instruction” v-bind “,” @ “is the abbreviation of instruction” v-on “; and”. “” is modifier. Vue gets DOM Add a ref attribute to the tag: ref = my_ box”Get: this$ refs.my_ box; Title .my_box{ width: 200px; height: 200px; border: 1px solid […]
-
Time:2020-10-10
Leetcode 144. Preorder traversal of binary trees The right child is the first to press the stack, and then the left child. Due to the characteristics of the stack, the left child is taken out first, and then the right child is taken outRoot left right。 class Solution { public: vector<int> preorderTraversal(TreeNode* root) { vector<int> […]
-
Time:2020-8-30
A recent requirement is to have a date selector with a custom style. The arrow will be hidden automatically on IOS, but Android will not, as shown in the figure below Then a variety of online search summed up the following ways input[type=”date”]::-webkit-inner-spin-button, input[type=”date”]::-webkit-outer-spin-button, input[type=”date”]::-webkit-calendar-picker-indicator{ visibility: hidden;-webkit-appearance: none;display: none;} However, there is no effect of […]
-
Time:2020-8-18
Yidun business risk control weekly reports on security technologies and events worthy of attention every week, including but not limited to content security, mobile security, business security and network security. It helps enterprises to be vigilant and avoid these security risks that may affect the healthy development of business. 1, Shanghai City Internet Office handled […]
-
Time:2020-7-30
When you give your first smartphone to your childPlease don’t let them enter the digital world unprepared. Technology executive Jennifer Zhu Scott signed a three page usage agreement with her children after they got their phones, along with suggestions that even adults should consider following. For many modern people, getting the first smartphone in life […]
-
Time:2020-5-15
Origin of the red black tree: it was invented by Rudolf Bayer in 1972. It was called the balanced binary B-trees at that time. Later, it was modified into the current red black tree by Leo J. guibas and Robert Sedgewick in 1978. Therefore, the red black tree appeared in the vision of software developers! […]
-
Time:2020-5-9
Example 17 100 lights are on Problem description There are 1, 2, 3 The 100 lamps of 99, 100 are arranged in a row from left to right, and each lamp is controlled by a pull switch. At first, they are all closed. There are 100 children. The first one comes to pull the light […]
-
Time:2020-3-23
Data structure tree and binary tree Definition: a tree is a finite set of n (n ≥ 0) nodes. In a non empty tree, there are andOnly unique root nodeWhen n > 1, all nodes except the root node can be divided intoM (M > 0) disjoint finite setsThey are also a tree called rootSubtree […]
-
Time:2020-3-22
The basic concept of binary tree Definition: binary tree is aThe degree is two.Our children are divided into left and right trees, and they are all binary trees. (the degree must not exceed 2, and it is an ordered tree.) Important properties of binary trees Property 1: there are at most 2 ^ (i-1) nodes […]
-
Time:2020-3-1
Two fork pile Two fork heap is a two fork tree, not necessarily a full two fork tree, but it must be a complete two fork tree. A complete two fork tree refers to the part allowed to be missing, but the part of the missing node must be the lower right side. The value […]