-
-
Notifications
You must be signed in to change notification settings - Fork 301
Conversation
|
Sure
|
|
@ds-249 Even arrays are mutable in Python. We can change the values in an array by referencing the particular index. |
|
@varunu28 I meant arrays in other languages, like C, Java. You declare them with the dimensions in the beginning, and you can't change it on the go like in python |
|
@ds-249 Yes. So the arrays have the same property as that of a list in Python. Both are mutable and we can change it on the go. Should I mention that there is no fixed size which needs to be allocated at time of declaration in Python whereas that needs to be done in languages like Java? |
|
Please change the file name like this : - Data-Structure-ARRAYS.md
+ Python-Arrays.mdIf its a python specific article (from the looks of it). However, if its a generic Data Structures Article, then you should provide implementations in few other languages as well. |
|
@koustuvsinha I am creating this article for #1044 so should I provide implementations in other languages also and if yes then in which other language? |
Data-Structure-ARRAYS.md
Outdated
| a collection of data, but it is often more useful to think of an `array` as a collection of variables of the same type. | ||
|
|
||
| `array` consists of contiguous memory locations. The lowest address corresponds to the first element and the highest address to the last | ||
| element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a new line here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atjonathan Wanted to explain a different point about the memory allocation of arrays so a new paragraph
|
okay, as per the issue its either Java or Python 3. Then you have done ok here, but I need to discuss this more with Wiki team. Do implement the reviews given by others :) |
|
@atjonathan I have done the changes. Please check |
Data-Structure-ARRAYS.md
Outdated
| Python doesn't have a native `array` data structure. An `array` in Python should not be confused with `list`. The major difference between a `list` | ||
| and an `array` in Python is that a `list` can have different types of values whereas an `array` should have all the values of same type. | ||
|
|
||
| ####Declaration of `array`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
####Declaration of Add spaces between #### and Declaration of array:array:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atjonathan Done
|
I left a few comments, hopefully you would fix that. Other than that, LGTM 👍Let's |
LGTM 👍@koustuvsinha, ready when you are 😜 |
Data-Structure-ARRAYS.md
Outdated
| @@ -0,0 +1,61 @@ | |||
| #Arrays | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-#Arrays
+# Data Structure ArraysDon't use : on the first title, they break the generator and get removed anyways.
|
Why not |
Whoever merges this, remember to use the squash instead of just merge. |
|
@Rafase282 I have implemented the changes. Please have a look. |
|
Looks good but the indentation is not needed on the code blocks. |
|
@Rafase282 I have removed the indentation |
LGTMLets 📦 |
|
@atjonathan I am merging this... |
|
@alayek Np :) I was 😴 |
* Markdown fixes for hash tables * Add cities, May 28 2016 * Article: Data-Structure-ARRAYS.md (freeCodeCamp#1052) * Create Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Rename Data-Structure-ARRAYS.md to Data-Structure-Arrays.md * Update Data-Structure-Arrays.md
* Create Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Rename Data-Structure-ARRAYS.md to Data-Structure-Arrays.md * Update Data-Structure-Arrays.md
* Create Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Rename Data-Structure-ARRAYS.md to Data-Structure-Arrays.md * Update Data-Structure-Arrays.md revised JS-Code-Linting
* Create Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Rename Data-Structure-ARRAYS.md to Data-Structure-Arrays.md * Update Data-Structure-Arrays.md revised JS-Code-Linting
* Create Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Update Data-Structure-ARRAYS.md * Rename Data-Structure-ARRAYS.md to Data-Structure-Arrays.md * Update Data-Structure-Arrays.md revised JS-Code-Linting
No description provided.