In this article, I try to use popular words to describe the difference between the two zval. The summary is at the end.
Official start
Structure of zval:
type
value
refcount: this parameter is used several times (including references). The garbage collection mechanism also judges this value, int
is_ref: whether it is referenced, true|false
...

Posted by exploo on Wed, 25 May 2022 11:04:37 +0300

Establishment and traversal of binary tree (1) Establishment of binary tree Establish a binary tree by traversing in the first order and in the second order: In the pre order traversal sequence of binary tree, the first element is always the value of the root node of the tree. In the middle order traversal sequence, the value of the node of the ...

Posted by Brandon_R on Wed, 25 May 2022 06:18:05 +0300

sParentOf(...)
isParentOf(child: Cell | null): boolean
Returns whether the current node is the parent node of the specified Cell.
parameter
nametypeMandatory Default valuedescribechildCell | null✓
isChildOf(...)
isChildOf(parent: Cell | null): boolean
Returns whether the current node / edge is a child node / edge of the specified node.
p ...

Posted by 2tonejoe on Wed, 25 May 2022 05:35:03 +0300

When we search for an integer among n dynamic integers, there are several methods
① Using dynamic arrays, the average time complexity is O(n)
② Using an ordered dynamic array and binary search method, although its worst time complexity is only O(logn), its average time complexity of addition and depth is too high, which is O(n).
③ Using a link ...

Posted by nonexist on Wed, 25 May 2022 04:01:05 +0300

Linked List: Singly Linked List
1. Introduction to linked list
A linked list is an ordered list, but it is stored in memory as follows:
The summary is as above:
1) The linked list is stored in the form of nodes, which is chain storage
2) Each node contains data field, next field: points to the next node
3) As shown in the figure: It is found t ...

Posted by Mr Camouflage on Wed, 25 May 2022 02:04:36 +0300

The first question of LeetCode brushing questions, the use of the sum of two numbers and the hash table
Topic description
Given an integer array nums and a target value target, please find the two integers in the array whose sum is the target value, and return their array indices.
You can assume that there will only be one answer for each input ...

Posted by 8ta8ta on Tue, 24 May 2022 17:54:50 +0300

Leetcode79 medium\color{#FF4500}{medium}medium
Click to enter the original question link: Word Search
Related topics: word search II word search II
[tag] backtracking search, C++ ASCII
subject
Discription
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell ...

Posted by snaack on Tue, 24 May 2022 01:57:25 +0300

Non subject class Xiaobai, record the learning process
The first reaction to this question is dfs, which is easy to record the number of layers, but dfs has defects. See details for details
"Why not use DFS" https://blog.csdn.net/sharemon/article/details/102857989 .
Such as data (1)
8 8
1 3
1 2
2 3
3 4
4 5
5 6
6 7
7 8
...

Posted by aaronlzw_21 on Tue, 24 May 2022 01:28:07 +0300

target
1. Understand the difference between array and dynamic array.
2. Be familiar with the basic operations in array and dynamic array.
3. Be able to understand and use multidimensional arrays.
4. Understand the concept of string and the different characteristics of string.
5. Be able to use double pointer skills to solve practical probl ...

Posted by bigwatercar on Mon, 23 May 2022 21:35:07 +0300

Decrypt QQ number - queue
The new semester begins. Xiaoha is xiaohum's new deskmate (xiaoha is a little beauty). Xiaohum asks xiaoha about the QQ number. Of course, xiaoha won't tell xiaohum directly. You know the reason. So xiaoha gave xiaohum a string of encrypted numbers, and xiaoha also told xiaohum the decryption rules. The rule is as f ...

Posted by srikanthiv on Mon, 23 May 2022 14:04:57 +0300