DEV Community

Ukpai Chukwuemeka
Ukpai Chukwuemeka

Posted on

1 1

Data Structure 102: Types of Data Structure

Introduction

In my previous post Data Structure 101 we were able to understand what data-structure is and algorithm

On that note, we would be looking at the types of data-structure.
There are two main types of data structures, These includes;

Primitive Data Structure - They store the data of only one type.
Examples of primitive data structure are integer, character, float.

Non-Primitive Data Structure - is a type of data structure that can store the data of more than one type. Non primitive data structure are classified into two i.e., linear and non-linear data structure

LINEAR DATA STRUCTURE
Elements are stored in a sequential order. Examples; Arrays, Queues, Stacks and Linked Lists.

NON-LINEAR DATA STRUCTURE
Elements are not stored in sequential order. Examples; trees and graphs are non-linear data structures.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up