What is the array dx1[4] ,dy1[4] , dx2[4] user for …I am not getting it … Please explain …
Tourist Spoj Video solution doubt
@anirbandas0206
At a given X and Y
You have some directions you can go to like right and down and for second tourist during right down you have 2 positions he can go to as well
So these arrays represent possible directions you can go to in a step
So to generate next possible positions i you add
dx1[i] to x
dy1[i] to y
dx2[i] to x
If your doubt is resolved please close it
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.