|
@@ -1,4 +1,4 @@
|
1
|
|
-## Week 1
|
|
1
|
+## Week 2
|
2
|
2
|
### Problem 1
|
3
|
3
|
|
4
|
4
|
Write a Java program to insert an element (specific index and value) into an array. Shifting the rest of the elements to the right
|
|
@@ -7,7 +7,7 @@ Write a Java program to insert an element (specific index and value) into an arr
|
7
|
7
|
Index : 2
|
8
|
8
|
Value : 5
|
9
|
9
|
Original Array : [25, 14, 56, 15, 36, 56, 77, 18, 29, 49]
|
10
|
|
-New Array: [25, 14, 5, 56, 15, 36, 56, 77, 18, 29]
|
|
10
|
+New Array: [25, 14, 5, 56, 15, 36, 56, 77, 18, 29]
|
11
|
11
|
```
|
12
|
12
|
|
13
|
13
|
### Problem 2
|
|
@@ -17,6 +17,6 @@ Write a Java program to remove a specific element(by index) from an array.
|
17
|
17
|
```
|
18
|
18
|
Index : 1
|
19
|
19
|
Original Array : [25, 14, 56, 15, 36, 56, 77, 18, 29, 49]
|
20
|
|
-After removing the second element: [25, 56, 15, 36, 56, 77, 18, 29, 49, 49]
|
|
20
|
+After removing the second element: [25, 56, 15, 36, 56, 77, 18, 29, 49, 49]
|
21
|
21
|
|
22
|
22
|
```
|