Continuing from the last post I am going to discuss more about the array data structure which is 2D array.In this post, I will focus on the basic concept and usage. What is 2D Array? 2D array is basically array within array.Typically array contains specified data type in its element.However, it is possible that the element can contain another array instead! This is a 2D array with 3 rows and 5 columns.In each row, there is an array of size 5 which is the column size.In other words, there is an array of size 3 (row) and there is another READ MORE
Tag: array
Intro to Array data structure Part 1
Today, we will go over a popular data structure – array.This is the most basic and fundamental data structure in computer science regardless of any programming language.Even many complex data structures use array inside the implementation.Programming language like python doesn’t have array but it provides list instead. (of course, python list is much more flexible and easier to use than C++ array)In this post, I will go over some important characteristics of array with example code based on C++. What is Array? Array is a contiguous piece of memory of a certain data type.It sounds hard but it will be READ MORE