Results for Data Structures

Search Element in Linked List

someone February 06, 2021
In this article you will see how we can search element in linked list. We will see both iterative and recursive way of doing this.   Inserti...Read More

Count nodes in Linked List

someone February 06, 2021
We will insert all element of linked list in beginning & then simply traverse the linked list and keep counter to count the length. At l...Read More

Primitive Operations

someone February 06, 2021
This article has Primitive operation of linked list. Below script has code for insertion in beginning, insertion in end, printing linked lis...Read More

Print matrix in spiral form

someone September 27, 2020
Question : The question is pretty much clear that we have to print the matrix in spiral form. So for this we will take four pointers pointi...Read More

Array

someone August 31, 2020
Other Resources  Data Structures   Questions : Insertion in unsorted array  Read More

Insertion in unsorted array

someone August 31, 2020
Problem Statement : Given unsorted array & element to insert. WAP to insert that element to its correct position.   Approach   1) Sor...Read More

Preorder Traversal

someone August 09, 2020
Postorder traversal is accessing root then left then right   Related : Inorder , postorder and levelorder traversal.  Also check : Tre...Read More

Check if both binary tree are equal

someone August 07, 2020
 In this we have to check whether given two trees are equal or not. It is also present in LeetCode. Question In this we have to return boo...Read More

Inorder Traversal

someone August 07, 2020
Inorder traversal is accessing  left then root then right   #include <bits/stdc++.h> using namespace std; class Node { p...Read More

Postorder Traversal

someone August 07, 2020
Postorder traversal is accessing  left then right then root   #include <bits/stdc++.h> using namespace std; class Node { ...Read More

Levelorder Traversal

someone August 07, 2020
 In this with the help of queue we print element from left to right. We move from one level to the next & store left node element unt...Read More

Tree

someone August 07, 2020
Other Resources : Data Structures Questions : Introduction Inorder Traversal Preorder Traversal Postorder Traversal   Levelorder Traver...Read More

Tree Introduction

someone August 07, 2020
 Declaration of tree can be divided in three parts : Create class with data, left & right pointer Node function which initialize data,...Read More

Sum of N Even number using Recursion

someone August 04, 2020
Given number N, task is to find the sum 2 + 4 + 6 + ... + n. Using Recursion. Note : This Problem is part of Recursion series . Make s...Read More

Data Structures

someone August 04, 2020
This page contains detailed tutorials on different data structures (DS) with topic-wise problems. Topics : Array           What is Array? ...Read More

Recursion

someone August 04, 2020
Other Resources : Data Structures Questions : Sum of N Natural number Sum of N Even number Factorial Recursion Digit Sum ...Read More

Sum of N Natural number

someone August 04, 2020
Given number N, task is to find the sum 1 + 2 + 3 + ... + n. Using Recursion. Example : Input : 5  Output : 15   Approach : Ti...Read More
Powered by Blogger.