05 | array: Why do so many programming languages array are numbered from 0?

 

 

 

 The second memory space is continuous and the same type of data. It is because of these restrictions, which have called a "killer" feature: "random access." But beneficial to have disadvantages, these restrictions also made a lot of very inefficient operation of the array, such as in an array in order to delete, insert a data, in order to ensure continuity, we need to do a lot of data movement work.

 

 

 Many times we are not going to memorize a data structure or algorithm, but to learn thinking skills and process behind it, these things are the most valuable

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/lakeslove/p/12313539.html