Hi, guys.
Welcome back to the goals.
So in this session, they will solve very easy problem on area.
So the problem is given, Eddie, let's say that is
let's say Matt is one, two, three and four.
So we have to print at 18 months old friend in reverse order.
So until now, we have printed that aning using order.
That is from this.
So this.
OK.
Now, what we have to do, we have to bring that in reverse order.
Letters from this to this.
So my vote should be four, three, two and one.
So when I leave my adays, let's see, my ad is five.
One, two.
Seven.
Some output should be seven to one and five.
OK, so this is a very easy problem.
So footprinting the ad in English.
So footprinting that is from this from left to right.
What we used to do for I equals zero I less than n I blessedness C out of.
I know footprinting that from right to left.
What we will do for it will start from the last index which is and minus one.
OK, so the last prediction is and minus one eye is greater than or equals zero ie minus minus.
See out here, fine.
So this is all that we have to do.
OK.
Very easy problem.
That's right.
The code.
So let's name it as Brent reverse, reverse, Brent.
We will spend R.S.V.P..
Now, what we have to do first.
Let us take input.
So a number of elements are in.
Let's make an area of size N and now we will take an element as input.
So I was so I was zero.
I would list an N A plus, plus take input.
Now we will bend.
So first do normal print.
So normal print that is from left to right.
So what we used to do is we will I played first index zero Noster Indexes and minus one.
And we will print.
Now, this was normal print.
Now they will print in reverse order.
Okay, so.
Reverse order.
Now they sprint from right to left.
OK, so the last indexes and minus one.
So for.
And I equals loss from Nexus and minus one.
And the force from Nexus zero.
And I will degrees C out of I.
So this is all that we have to do.
OK, so let's test.
So a number of elements are five and the elements are two, four, one, six and three.
So this is normal order and this is the reverse order.
Okay, so let me give spaces.
And let us also ride out normal.
She out.
Was.
So a number of elements are five.
And the numbers are two, five, one, six and three.
So a normal order is give given order to five or six three.
And the reverse order is three, six, one, five and two.
So one more time.
That's the only three elements are there, and elements are one to win three.
So this is normal print and this is reverse sprint to do one.
OK, so the problem was it didn't start from the last or next till the first index and then print the
value of a.
OK.
So this is it for this video.
Thank you.