Please read the new rule regarding the restriction on the use of AI tools. ×

jugal_sahu's blog

By jugal_sahu, history, 9 years ago, In English

Hi! I am unable to find why my code is giving memory limit exceeded? Please can someone help......? my code: 12828787

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +3 Vote: I do not like it

There is an infinite loop while(pre[i]!=i) { Ans.pb(i); i=pre[i]; }