# C DATA STRUCTURES

# Memory Allocation

未命名图片 未命名图片 未命名图片

# Linked-List

未命名图片

# Add a node

There are four steps to add a node to a linked list:

  1. Allocate memory for the new node.
  2. Determine the insertion point
  3. Point the new node to its successor
  4. Point the predecessor to the new node.

Capture

# Delete a node

Capture

# Search for a node

Capture

# Traverse (walk) the list

Capture

# Examples

Capture Capture Capture Capture Capture Capture Capture Capture

# Doubly Linked List

Capture

# Adding Nodes

Capture Capture

# Find a Node by ID

Capture

# Stacks

Capture Capture

# Push

Capture

# Pop

Capture

# Queues

Capture Capture

# enqueue

Capture

# dequeue

Capture

# Binary Tree

Capture Capture Capture Capture

# Breadth-First Traversal

Capture

# Depth-First Traversal

# Preorder

Capture

# Inorder

Capture

# Postorder

Capture

Capture

上次更新: 12/18/2019, 11:45:05 PM