Here is the link to the code for above problem–https://ide.codingblocks.com/s/11083
Here in line no. 19 it’s written visited[a[0]] = 0;
What does this line even mean?
I doesn’t make any sense to me , because ‘a’ is a character array and so a[0] is some character(not an index)…
Please explain this, because I’m absolutely unaware about this concept.
Problem with the solution from the video
hello @chaturvedia336
when u use some character as vector/array index then its ascii value is used as index.
for example if i do visited[‘a’]=32;
then ascii value of ‘a’ is used (which is 97) and 32 is assigned at that index.
i.e visited[‘a’]=32 is equivalent to visited[97]=32
I’m not able to grasp how the code is working from the video, can you please explain the above code with an example??
bro video solution is already there
what u r not getting?
I’m not able to make out how exactly is the window sliding, but no problem I’ll give it a try once again…
If the problem persists I’ll reach out
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.