Step-by-step explanation:
Data structure is a way of gathering and organizing the data in such a way that we can perform operation on the data very efficiently.There are different types of data structures such as :-
- Arrays
- Linked list
- Stacks
- Queues
- Trees
- Graphs
These are the basic data structures.
Algorithm:-It is a finite set of instructions written to accomplish a certain task.An algorithm's performance is measured on the basis of two properties:-
- Time complexity.
- Space complexity.
Software developers need to know data structures and algorithms because all the computers rely on data structures and algorithms so if you know data structures and algorithms better you will know the computer better.