can u please give the logic for this question
Cant understand
hi bro can you give the code of this problem using only arrays. cause i havnt started vectors or maps
hi @vmayaan,
the first solution they gave does’nt have vectors please check once, only a visited vector in made to keep check of elements visited u can change that to array initialized to false without any issues
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.