DEV Community

cloudytech147
cloudytech147

Posted on

2

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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs