Hi, everyone.
So in this video, we are going to solve this question, find the length of the character.
We can easily solve this question with the help of all of our value.
But we need to apply recursion so we will use it to solve this problem.
So if I were strangers, if I were Kappos ABC, then the length should be fought so hard against all
discussion.
So it's very easy.
It is very easy to do.
So I will call verification on this area, so I will call verification on this occasion will give me
the land for this Eddie.
It will give me the land for this area and I will plus one, so I will add plus one and that will be
my final answer.
Simple.
So let us not rewrite the code so that they will be integer.
We are going to return the land.
Let's say the name of the function is land.
So it will take character that is and put.
So first, what will be excuse me is very simple if.
Our area is empty, so that means in Port of zero is nil.
So if I were a somebody in that case, what would be the length Lenthall be zero.
So I would have done zero.
Otherwise, what will do so as discussed, first of all, we will call that equation.
So this is our area.
So I will call the occasion on this and I will call the occasion on this.
So the commission will give me the answer.
You will give me relent for this small area, Lentulov of a small area lenth small.
And then I will add plus one I will add plus one, and that will be my final answer.
So let's call that equation and let's take a variable to store the answer.
So let's name it.
Small island.
So what is more land, let's call the land function?
So that is in part plus one, we need to pass this.
We need to pass this right.
So this is the Saudis input.
And this adds input plus one, so we know the answer for this area.
What I need to do, I will add plus one and I will return.
So a pleasant handwritten.
So that's done one plus small and.
And I think our function will work, so let's create an eddy, so character and sort of size and I will
take input from the user.
And let's call it a function.
So in order to spend the.
So I thought I'd say McWilliam here.
And the name of the function is wrong spelling mistake.
So it is waiting for the input to the inputs ABCDE, so the output is for the Lantis for.
Let's test one more time.
So the input is A, B, C, D, E, F, G, and the output is seven.
So basically our function is working and now let us know how it is working.
So logistics, for example, ABCDE.
So we have now told ABC Radio National.
So check the first character, first characters, nocturnal, so called Collision.
We could call on this, Mollari, so the first character is not so collocation, this Mollari silly.
First character is not an so called Erica DNN, so again, the first character is not called dedication.
So now the first character is.
So if you hadn't written so this will return zero.
So whatever value you are getting from recursion, you will add plus 101.
So I'm getting zero, I will add plus one.
So it will become one whatever value you are getting at, plus one, it will return to a developed country
and it will return for so far is the correct output for ABCDE.
Simple.
So what you can do.
So basically this very small land, there's no need to create this variable.
You can directly put the value here.
So the value of small and variable is this.
So that's directly put the value and let's not create the variable.
So there is no need to correct the variable just.
Got it from here.
And Pastor Ted.
So let's test one more time, so they put this basically ABC and the dentistry, so our function is
working.
So this is it from this video.
I will see you in the next one.