DEV Community

cloudytech147
cloudytech147

Posted on

Data Structure and its Types

A data structure is a particular way of organizing data in a computer so that it can be used effectively.

For example, we can store a list of items having the same data-type using the array data structure.

Memory location

In programming, we use so many types of data structures to provide a proper structure to our data. A data structure is basically used to collect and organize the data on which we are going to perform the operations.

Types of Data Structure

Types of data structures are basically of two broad types:

  • Primitive
    • Integer
    • (Double) Floating-point Numbers
    • Character
    • Pointer
  • Non-primitive
    • Linear Data Structure
      • Array
      • List
      • Stack
      • Queue
    • Non-Linear Data Structure
      • Tree
      • Graph
    • File Data Structure

Conclusion

Data structures are the most important part of a programming language and during tech interviews, the favourite topic of the interviewer.

That’s probably because the ability to choose the right data structure is one of the vital skills a programmer should possess.

Discussion (0)