Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
690 views
in Interview-Experiences by Expert (30,360 points) | 690 views

1 Answer

0 like 0 dislike
Google Telephonic Interview

You are given the below array and each element in array is having some specific property
like below
^ = doubles
V = vanishes
any other character remains the same

consider the below input
I/p : '^' '^' 'T' 'T' _ _
this will be converted to array below
O/p : '^' '^' '^' '^' 'T' 'T'
so in the above example consider T as any other character and '_' empty space
when if after doubling this '^' the characters are going out of array length then we can throw error.
we need to return the o/p in the same array we cannot use extra space.
by Expert (30,360 points)