Lesson 8 of 10 • 0 upvotes • 7:45mins
A simple solution is to traverse the linked list until you find the node you want to delete. But this solution requires pointer to the head node which contradicts the problem statement. Fast solution is to copy the data from the next node to the node to be deleted and delete the next node.
10 lessons • 1h 21m
Top 10 Algorithms in Interview Questions: Introduction
6:31mins
Dynamic Programming Floyd Warshall Algorithm
10:19mins
Depth First Search or DFS for a Graph
5:47mins
Method 2 Linked List (make visited nodes)
5:47mins
Breadth First Search or BFS for a Graph
9:27mins
Boggle (Find all possible words in a Board of Characters)
8:21mins
Kruskal's Minimum Spanning Tree Algorithm
5:53mins
Given a singly Linked List and a position, delete a Linked List node at the given position
7:45mins
Disjoint set or (union - find) Algorithm of a Graph
10:07mins
Finding Bridges in a graph intro to the Algorithm
11:39mins