L8
Array Problem Solving
For Discord email - support@[Link]
Find smallest and second smallest in Array
①
Explanation Slide
Simila
Reverse an array
* -
S
is
-
n -
i+
1
43 G 152 G n -
T
-
= & - -
4 5 n 2
3
2
-
8 I 2
2
=
- -
6 3 Y 3
251 2 n -
3
- A n
-
-
4
51637
:
2
e
· i
Given a sorted array find it’s median
mediam
-
245
-
so 9
6
G
23089
T
I
Move Zeros [Leetcode]
131200
23500000
Explanation Slide
Find Frequency of each element in array
143 332118
0-1
1 -
3
2 - 1
3 -
7 -
1
Explanation Slide
Practice and Homework Questions
Homework questions -
1 [Link]
2 [Link]
3 [Link]
4 [Link]
5 [Link]
6 [Link]
7 [Link]
[Link]
Thank
You!
Please practice more questions and examples as above !!