Mastering Data Structures & Algorithms using C, Java, C++ ·
Data Structure way of organizing data in a computer .
Example: Arrays, Stack, Queue,List , Graph etc
Below is some point to be consider before implementing :-
What kind of information will be stored with help of data structure? Where should data persist, or be kept, after it is created ? What is the best way to organize the data in multiple way? What aspects of memory and storage Optimization ?
I will add the most important point that before learning data structure and algorithms, you must be familiar with programming languages like C++, C, Python, etc
#include <stdio.h>
int main() {
//array declaration
int rollNo[10];
//taking inputs
for(int i=0;i<10;i++)
scanf("%d",&rollNo[i]);
//printing
for(int i=0;i<10;i++)
printf("%d ",rollNo[i]);
return 0;
}
Input: 12 13 34 56 12 87 56 78 23 10
Output: 12 13 34 56 12 87 56 78 23 10
Data structures, which are fundamental ideas in computer science, are used to arrange and store data in a way that makes it possible for operations and retrieval to be performed quickly. They serve as the foundation for numerous algorithms and applications. Here we saw few of the most popular data structures and their fundamental operations.