Linked list is an important data structure since it is used to implement other data structures or as a base for data management tasks. Data structures is one of the…
Category: <span>Data Structures</span>
Insertion sort is a frequently used sorting technique to sort a small count of elements since its complexity is O(n^2). It gets the name insertion sort because of the way…
Water Trapping is a typical problem that is very commonly used by prospective employers to test your analytical or programming skills. And believe me it is quite tricky!! Water Trapping…
Shell Sort is a sorting technique. It is an sorting technique that repeatedly uses insertion sort method to sort the sub-lists that are created by defining the step. It’s a…
Binary Search is a very common search method for datasets that contain large count of elements. It works only if the input data is sorted and you have direct access…
Binary Search Tree Insertion operation relies on the search operation. The aim of search operation in insertion is to find a node that can be parent of the new node. …
Binary tree is a non-sequential or non-linear data structure used to represent hierarchical relationship among elements. You can add maximum two child nodes under any node of the binary tree. …
Postorder Traversal is done by traversing the left and right child nodes of a node binary tree or subtree before the node. In short it is termed as Left-Right- Root.…
Inorder traversal in a binary tree defines that the root node of a tree/ subtree is visited after its left child node and before its right child node. It can…
Preorder Traversal in a binary tree defines that the root node of a tree/ subtree is visited before its left and right child nodes. It can be defined as Root-Left-Right.…