Data structure

C Programming
Data Structure

Compatible Arrays

2 arrays are said to be compatible if they are of the same size and if the ith element in the first array is greater than or equal to the ith element in the second array for all i.Write a  program to find whether 2 arrays are compatible or not. Input Format: Input consists of […]

Read More
C Programming
Data Structure

Stack using Array Implementation : Push and Pop

Consider implementing a dynamically sized stack using an array. Create a structure struct stack { int * a; int top; int maxSize; };   The structure stack has a pointer ‘a’ to a dynamically allocated array (used to hold the contents of the stack), an integer ‘maxSize’ that holds the size of this array (i.e […]

Read More
Data Structure

Linked List implementation in C

Linked List is a linear data structure and the elements are linked using pointers,They can be used to implement several other common abstract data types: stacks, queues, associative arrays though it is not uncommon to implement the other data structures directly without using a list as the basis of implementation.  Here in this code we […]

Read More
Data Structure

Data Structure: Definition and Types

In this tutorial, we will learn about the theoretical aspect of Data Structure: Its Definition and Types of data structure in C Programming Langauge. A data structure is a way of organizing data that reflects not only the items stored but also their relation to each other. Advance familiarity about the relationship between data items allows […]

Read More