Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 1293

For questions regarding the data storage structure of an Array. This can range from their standard indexing to their usage in comparison to other data structures. Arrays are an ordered list of elements which are usually all of the same type. Nested arrays can contain arrays as elements.

57
votes
I'm surprised that the following hasn't been stated yet. All of the answers given so far seem to be "after the fact" explanations of something that is really based on the way people built most (not al …
answered Sep 3 '18 by Buffy
1
vote
Let me suggest, pretty strongly, that you may be mixing up too many ideas in too short a space for novices to grasp in one go. Spread it out. There is no real reason to introduce arrays along with … you first present arrays in a simple way, using all of the available sweetener that there is (syntactic sugar). Something like this tutorial is pretty clear. It enables the use of arrays for nearly all …
answered May 29 '18 by Buffy
0
votes
This "not an answer" is just an attempt to give some perspective to the issue. We often use arrays to keep track of information. Each entry (I'll call it a "row" here for reasons that will become … also). So, we get an array of arrays. There is nothing in general that says that each of those arrays needs to be of the same length, as the information stored in a row might vary. But (insight coming …
answered Jan 11 by Buffy
7
votes
The Dutch National Flag problem is linear in running time. Essentially sort an array with only 3 distinct values each of which may appear 0 or more times. (not length 3). You are allowed only one pass …
answered Dec 15 '17 by Buffy