Below I attached a image of gfg where visited array concept used I used this as a reference for that question . I really not copied from other . I even don't know who the person is .↵
I understand that there can be similarities in competitive programming due to the nature of common algorithms and problem-solving techniques. I assure you that my intention was not to violate any rules. If needed, I can provide additional context or documentation regarding my thought process during the development of my solution.↵
AND also the solution is not exactly same it used the cycle_size>1 and i used > 2 .↵
please give me my contest performance back ↵
↵
Thank you for your understanding, and I appreciate the opportunity to clarify this matter.↵
↵
Best regards,↵
Simran_200.