WGU C949 - List, Stacks and Queues Questions & Correct Answers | Grade A+
Singly-linked List Ans- A list connecting elements in one direction. Ex: A->B->C->None A starts the list A links to B B links to C C ends the list Doubly-linked List Ans- A list connecting elements in two directions. Ex: None<-A<->B<->C->None A starts the list A points to B B points back to A B points to C C points back to B C ends the list Circular List Ans- A list where the last element points back to the first. A->B->C->A A points to B B points to C points to A List Insert Ans- Insert a node into a list. A) If the list is empty, set the inserted node as the head and tail B) If the node is inserted after the tail, point the previous tail to the inserted node and set the inserted node as the tail. C) If the node is inserted before the head, point the node to the previous head and set the inserted node as the head. D) If the node is inserted i
Written for
- Institution
- WGU C949
- Course
- WGU C949
Document information
- Uploaded on
- July 15, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
wgu c949 list stacks and queues questions cor
Document also available in package deal