Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions 01.Introduction to Data Structures/Arrays/Arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Check:
**Description:** Change the value at a specific index.

```cpp
arr = 100; // Set element at index 3 to 100
arr[3]= 100; // Set element at index 3 to 100
```

- **Time Complexity:** $O(1)$
Expand All @@ -250,11 +250,10 @@ arr = 100; // Set element at index 3 to 100

#### **Representation**

Before update:
``
Before update:{10, 20, 30, 40, 50}

After update:
``

After update:{10, 20, 30, 100, 50}

***

Expand Down