Data structure and algorithm foundation - Go language version - 2. Stack
catalogue
preface
1, Definition and characteristics of stack?
2, Implementation of stack
2.1 sequence stack
2.1.1 structure definition of sequence stack
2.1.2 initialization of sequence stack
2.1.3 judge whether the stack is empty or full
2.1.4 stacking
2.1.5 out of stack
2.1.6 preview stack top elements
2.2 chain stack
2.2.1 struct ...
Posted by allanric on Thu, 18 Nov 2021 08:10:35 -0800
vue3 onomori-03-toRaw,markRaw, life cycle hook, optional provide and inject, combined provide and inject, add response formula to provide and inject, $refs
1,toRaw
Returns a proxy object wrapped in reactive or readonly In fact, it is to convert a proxy object into an ordinary object
<template>
<div>
</div>
</template>
<script>
import {ref,reactive,toRaw,readonly,shallowReactive,shallowReadonly,toRefs} from 'vue'
export default {
name: 'App',
setup (props ...
Posted by Joeker on Thu, 18 Nov 2021 08:03:55 -0800
Basic query and sorting
This article learned from Dataware SQL tutorial
SELECT & WHERE
SELECT: SELECT the necessary data from the table
Query: the process of matching query / query and selecting necessary data through SELECT
SELECT "Field name" FROM "Table name";
WHERE: selectively extract necessary data
SELECT "Field name"
FROM "Table name"
WHERE "condit ...
Posted by schris403 on Thu, 18 Nov 2021 08:01:38 -0800
Use of object pool in. NET Core
1, What is an object pool
Object pool is simply a software design idea that provides reusable ability for objects. We often say that it is not difficult to borrow and return, and the object pool ensures that objects can be reused through borrowing and returning, so as to save the performance overhead of frequent object creation. The most commo ...
Posted by ChaosDream on Thu, 18 Nov 2021 07:50:30 -0800
Detailed explanation of linux tput command
1. Introduction
The tput command initializes and operates your terminal session through the terminfo database. Using tput, you can change several terminal functions, such as moving or changing the cursor, changing text properties, and clearing specific areas of the terminal screen.
Like most commands in UNIX, the tput command can be used ...
Posted by ultk on Thu, 18 Nov 2021 07:47:10 -0800
Open source operation log tool
Absrtact: it is inevitable to record sensitive operations in business systems, which can be realized by hard coding or simple annotation, but they are not elegant enough. Today, I share a log tool written by myself.
This is a logging tool implemented with reference to an article by meituan. It can record operation logs flexibly and has good ...
Posted by kevingarnett2000 on Thu, 18 Nov 2021 07:43:19 -0800
Binary tree (primary)
Catalogue of series articles
Preorder traversal: Root - > left - > right
Middle order traversal: left - > root - > right
Post order traversal: left - > right - > root
1, Middle order, pre order and post order traversal
Middle order traversal of binary tree: traverse the tree by accessing the left subtree - root nod ...
Posted by LostKID on Thu, 18 Nov 2021 07:33:52 -0800
Sorting of common Linux commands
1. Delete folders and files
rm command
Permission: all users can use rm command to delete directories on the terminal.
Format:
rm [option] DirName
Description of rm command options
The [options] in the command generally include the following:
-i #Ask for confirmation one by one before deleting.
-f #Even if the original file attribute ...
Posted by NeoGeo on Thu, 18 Nov 2021 07:30:10 -0800
In depth understanding and learning of spring MVC - Basics
SpringMVC
1, Introduction to spring MVC
1. What is spring MVC?
The framework Spring MVC framework developed on the basis of Spring is the controller framework C-layer framework (struts 2 is also the C-layer framework)
Essence: replace the struts 2 framework as a controller
In order to enable Spring to plug into MVC architecture, Spring fra ...
Posted by jjoves on Thu, 18 Nov 2021 07:14:28 -0800
2, Select structure
catalogue
1. Composition of JavaScript
1. Three cores
2. Common methods of window objects
2.if selection structure
3. Multiple if selection structure
4. Nested if selection structure
5.switch selection structure
6. Ternary expression
1. Composition of JavaScript
1. Three cores
ESMAScript core syntax (Standard Specification) - > ...
Posted by jikishlove on Thu, 18 Nov 2021 07:04:12 -0800