Array from Linear Data Structure (#shorts )

1 year ago
11

Hi Friends,

Array from Linear Data Structure

Linear Data Structure : Array Data Structure

In Array Data Structure, An array is like a row of boxes, where each box can hold one thing (like a number, letter, or word). Each box is numbered in order, starting from 0 for the first box, and increasing by 1 for each box after that.

Array data : 2, G, 8, T, 4, M
Index: 0, 1, 2, 3, 4, 5

Arrays are useful because they let you keep lots of things organized in a row and easily access them by their number. eg: if you have an array of number, letter or word, you can easily get the number, letter or word at 3rd number in the array list by looking for box number 2 (because array counting starts from 0).

Array data : 2, G, 8, T, 4, M
Index: 0, 1, 2, 3, 4, 5
Array Data @ index 2 is 8

However, there are some limitations in arrays. Once you make an array, you can't easily change its size. You also can't easily add or remove things from the middle of the row without shifting everything else over.

Overall, arrays are a useful way to organize and work with collections of data, but there are some limitations in arrays that may make other data structures more suitable for certain tasks.

#data #datastructure #datastructures #datastructureandalgorithm #array #arraydatastructure #linear #lineardatastructure #lineararraydatastructure #developer #development #structure #algorithm #shortsvideo #shortsfeed #shortfeed #shorts #short #shortvideo #shortsyoutube #shortsviral #shortvideos #shortsbeta #viral #viral_video #viralshort #viralvideo #viralshorts #viralvideos #trending #trendingnow #trendingshort #trendingshorts #trend #trendingvideo #trends #success #motivation #programming #program #programmer #code #coders #coders #devlife #development #javascript #php #script #jquery #ec6 #ecmascript6 #ecmascript #princecheema_official @princecheema_official

Loading comments...