MindMap Gallery Linked list Scala data structure algorithm self-study tutorial mind map
Linked list Scala data structure algorithm self-study tutorial mind map, underwear has an introduction to data structure (algorithm), linked list (Linked List), and Joseph's problem ideas, welcome to learn.
Edited at 2023-02-24 21:09:27This Valentine's Day brand marketing handbook provides businesses with five practical models, covering everything from creating offline experiences to driving online engagement. Whether you're a shopping mall, restaurant, or online brand, you'll find a suitable strategy: each model includes clear objectives and industry-specific guidelines, helping brands transform traffic into real sales and lasting emotional connections during this romantic season.
This Valentine's Day map illustrates love through 30 romantic possibilities, from the vintage charm of "handwritten love letters" to the urban landscape of "rooftop sunsets," from the tactile experience of a "pottery workshop" to the leisurely moments of "wine tasting at a vineyard"—offering a unique sense of occasion for every couple. Whether it's cozy, experiential, or luxurious, love always finds the most fitting expression. May you all find the perfect atmosphere for your love story.
The ice hockey schedule for the Milano Cortina 2026 Winter Olympics, featuring preliminary rounds, quarterfinals, and medal matches for both men's and women's tournaments from February 5–22. All game times are listed in Eastern Standard Time (EST).
This Valentine's Day brand marketing handbook provides businesses with five practical models, covering everything from creating offline experiences to driving online engagement. Whether you're a shopping mall, restaurant, or online brand, you'll find a suitable strategy: each model includes clear objectives and industry-specific guidelines, helping brands transform traffic into real sales and lasting emotional connections during this romantic season.
This Valentine's Day map illustrates love through 30 romantic possibilities, from the vintage charm of "handwritten love letters" to the urban landscape of "rooftop sunsets," from the tactile experience of a "pottery workshop" to the leisurely moments of "wine tasting at a vineyard"—offering a unique sense of occasion for every couple. Whether it's cozy, experiential, or luxurious, love always finds the most fitting expression. May you all find the perfect atmosphere for your love story.
The ice hockey schedule for the Milano Cortina 2026 Winter Olympics, featuring preliminary rounds, quarterfinals, and medal matches for both men's and women's tournaments from February 5–22. All game times are listed in Eastern Standard Time (EST).
Linked list Scala data structure algorithm self-study tutorial mind map
Introduction to data structures (algorithms)
Data structure is a discipline that studies algorithms
program = data structure algorithm
Linked List
Overview
The nodes of the linked list in the memory are not necessarily continuously distributed. From the logical structure point of view, they are continuous.
Judging from the usage effect, the search speed is slow, so in actual development, tree structures are often used to optimize linked lists (AVL, red-black tree)
Addition and deletion are very efficient
increase
Method 1: Add at the end of the linked list
Create the head node head, which does not store valid data. Its function is to identify the head of the linked list.
Create an auxiliary pointer (variable) to help locate the end of the linked list
Method 2: Join according to size
temp needs to be located at the previous node of the position to be added
Conditions for finding location
Use heroNode.no and temp.next.no to determine
Subtopic 2
delete
In the singly linked list state, locate temp to the previous node of the node to be deleted.
temp.next = temp.next.next
Consider the case where the node to be deleted is not found: temp.next.no = no
change
Define auxiliary variables, find the node, consider the situation where it cannot be found, and give a prompt
check
Define auxiliary variables to help traverse
while, when temp.next == null, the traversal ends
Traverse
while, when temp.next == null, the traversal is completed
Joseph's question
Josephu question
Suppose n people numbered 1, 2,...n sit in a circle, and it is agreed that the person numbered k (1=<k<=n) starts counting from 1, and the person who counts to m comes out of the queue, and the next person The bits start from 1 again, m is dequeued, and so on until everyone is dequeued.
Solutions
One-way linked list, locate the node before the child who wants to leave the circle
temp locates the node before first
Subtopic 3
Subtopic 4