• ## 0x01. Create a window using sdl2

Time：2021-12-1

The code has been uploaded togitHosting platform, start coding now Start at the entrance Directly inmainFunction to write things, write and then organize the code use self::time::Duration; use sdl2::pixels::Color; use std::{thread, time}; fn main() { let sdl2_context = sdl2::init().unwrap(); let video = sdl2_context.video().unwrap(); let window = video .window(“Arcade Shooter”, 800, 600) .position_centered() .opengl() .build() .unwrap(); […]

• ## [PHP data structure] tree and binary tree

Time：2021-10-15

The concept of tree is actually very broad and common. Don’t be alarmed when you see this word, because you can see the application of tree structure in our life every day. For example, the organizational structure of the company: In addition, our family tree, or our family structure, is also a typical tree structure. […]

• ## Data structure — basic concepts and properties of binary tree

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 […]

• ## Summary of data structure related articles (to be changed)

Time：2020-3-19

1. Basic knowledge of trees2. Basic concepts and properties of binary trees3. Storage structure and traversal mode of binary tree4. Clue of binary tree and correlation of binary sorting tree

• ## Sorting – maximum heap construction and heap sorting (single step process)

Time：2019-12-29

Here is a brief introduction to the most basic properties: The biggest pile must be a complete binary tree When the parent node is n, the left child is n * 2 + 1 and the right child is n * 2 + 2 When the child is n, its parent node is: (n – […]