java determines whether a single linked list is a palindrome linked list
To judge whether a linked list is a palindrome linked list, you can use the stack or the speed pointer These are the codes sorted out according to Zuo Chengyun's algorithm course
1. With the help of stack structure, the feature of first in and last out
Traverse the linked list and put it on the stack at one time, then traverse the linked list ...
Posted by james_kirk on Wed, 13 Oct 2021 10:25:33 -0700
Explain the virtual DOM and Diff algorithm in simple terms, and the differences between Vue2 and Vue3
Because the Diff algorithm calculates the difference of virtual DOM, first pave a little bit of virtual DOM, understand its structure, and then uncover the veil of Diff algorithm layer by layer, in simple terms, to help you thoroughly understand the principle of Diff algorithm
Understanding virtual DOM
Virtual DOM is simply to use JS objects ...
Posted by tomato on Wed, 13 Oct 2021 08:51:49 -0700
2021 RoboCom world robot developer competition - undergraduate group (Preliminary)
catalogue
Write in front
7-1 understand everything
subject
Input format:
Output format:
Input example:
Output example:
meaning of the title
thinking
code
7-2 Finnish wooden chess
subject
Input format:
Output format:
Input example:
Output example:
meaning of the title
thinking
code
7-3 play strange upgrade
subject
Input for ...
Posted by fisel on Wed, 13 Oct 2021 08:45:03 -0700
Java implementation uses Floyd algorithm to solve the shortest path problem
14.9 Freudian algorithm
14.9.1 introduction to Floyd algorithm
Like Dijkstra algorithm, Floyd algorithm is also an algorithm for finding the shortest path between vertices in a given weighted graph. The algorithm is named after Robert Freud, one of the founders, the winner of the Turing prize in 1978 and professor of computer science at Stanf ...
Posted by auamy on Tue, 12 Oct 2021 17:44:37 -0700
Operating system experiment -- paging storage management
2, Paging memory management
catalogue
2.1 purpose
2.2 contents
2.3 experimental tips
2.4 data structure
2.5 algorithm design and flow chart
2.6 operation screenshot
2.7 summary
2.8 code
2.1 purpose
Master the basic principle of paging management, and reflect the process of memory space allocation, recovery and address convers ...
Posted by neuroxik on Tue, 12 Oct 2021 15:39:21 -0700
ceres learning note 5 - robot 2D / 3D pose map optimization pose_graph_2d/3d
1. 2D pose optimization_ graph_ 2d.cc
1.1. Problem description
be careful:
There is no problem with the official website tutorial in the above picture! Because the tutorial on the official website is really very careful! Note that the formula is Ra^T, and Ra is indeed the rotation matrix from the node coordinate system to the world coordina ...
Posted by Ward on Tue, 12 Oct 2021 15:01:21 -0700
Day3 - print binary tree from top to bottom
Title Description
Sword finger offer 32 prints a binary tree from top to bottom
Each node of the binary tree is printed from top to bottom, and the nodes of the same layer are printed from left to right.The binary tree is printed by layers from top to bottom, the nodes of the same layer are printed from left to right, and each layer i ...
Posted by kamasheto on Tue, 12 Oct 2021 12:29:24 -0700
Recursive and Divide-and-conquer Strategy
Recursive and Divide-and-conquer Strategy
1. Recursion
1. Distinguish Recursion from Cycle
Recursive: You open the door in front of you and see that there is still a door in the house. You walk over and find that the key in your hand can open it. You push open the door and find that there is still a door in it. You continue to open it. ...
Posted by adamking217 on Tue, 12 Oct 2021 09:59:22 -0700
Depth first traversal (dfs) and breadth first traversal (bfs) of Java construction graphs and graphs
13.1 basic introduction
13.1.1 why is there a diagram
We learned linear tables and trees earlierThe linear table is limited to the relationship between a direct precursor and a direct successorThe tree can only have one direct precursor, that is, the parent nodeWhen we need to represent many to many relationships, we use graphs here
13.1.2 i ...
Posted by misty on Mon, 11 Oct 2021 21:23:07 -0700
Summary of Data Structure Code Title ---- (Feel good and support it)
Summary of Data Structure Code Title
Title 01
A cyclic single-chain list with leading nodes whose node values are positive integers is designed. An algorithm is designed to repeatedly find the node with the lowest node value in the single-chain list and output it. Then the point is deleted from the single-chain list until the single-chain tab ...
Posted by cyberrate on Mon, 11 Oct 2021 09:56:48 -0700