JIYIK CN >

Current Location:Home > Learning > ALGORITHM >

All

Linked list reversal

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A linked list is a linear data structure. A node in a linked list consists of: Data item. The address of the next node. class Node { int data; Node * next; }; This article will show you how to reverse a linked list given a pointer to the he...

Full

Linked List Merge Sort

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

In this article, we will learn how to sort a linked list using merge sort algorithm. It is one of the most preferred algorithms to sort a linked list because slow pointer random access makes the performance of other algorithms worse (for ex...

Full

Link list deletion

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

In this article, we will learn how to delete a node from a linked list. Linked list deletion algorithm Let head be a pointer to the first node of the linked list and let temp be the value of the node to be deleted from the linked list. Iter...

Full

Doubly Linked List

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

Doubly linked list is a linear data structure. It is a collection of objects defined as nodes. But unlike a linked list, the node has two pointers, one is the previous pointer and the other is the next pointer. Just like the linked list nod...

Full

Circular Linked List

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A circular linked list is a data structure that is slightly more complex than a linked list. It is a linked list where all the nodes are connected in a loop and form a chain. The last node does not have a NULL . Instead, it stores the addre...

Full

Circular Doubly Linked List

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A circular doubly linked list is a combination of a circular linked list and a doubly linked list. Its two nodes are connected by a previous and next pointer. The next pointer of the last node points to the first node, and the previous poin...

Full

Binary Tree Traversal

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A binary tree is a non-linear data structure. It is called a binary tree because each node has at most two children. These children are called left and right children. It can also be interpreted as an undirected graph where the topmost node...

Full

Binary Search Tree

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A binary search tree (BST) is an ordered binary tree data structure based on nodes. A node has a value and two child nodes (a binary tree has at most two child nodes) connected to each other. A node has a value and two child nodes (a binary...

Full

Iterative insertion into a binary search tree

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

In the previous article Binary Search Tree , we discussed the recursive method to insert a node in BST. In this article, we will discuss the iterative method to insert a node in BST. It is better than the recursive method because the iterat...

Full

Binary Search Tree Check

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A binary tree is a non-linear data structure. It is called a binary tree because each node has at most two children. These children are called left children and right children. For a binary tree to be a BST, it must satisfy the following pr...

Full

Binary Search Tree Deletion

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

In the article Binary Search Trees: Searching and Inserting , we discussed how to insert an element into a binary search tree and how to search for a value in a binary search tree. In this article, we will discuss how to delete a node from...

Full

In-order descendants in a binary search tree

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

The in-order descendant of a binary tree is the next node in the in-order traversal of the binary tree. So, for the last node in the tree, it is NULL . Since the in-order traversal of a binary search tree is a sorted array. The node with th...

Full

Convert a binary tree to a binary search tree

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A binary tree is a non-linear data structure. It is called a binary tree because each node has at most two children. These children are called left and right children. It can also be interpreted as an undirected graph where the topmost node...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial