Help me find this problem!!

Правка en1, от cryptic-mortal, 2026-03-14 23:05:35

There are N robots and N position. Initially, each position consist of a single robot. You are given an array transfers, where transfer[i] denote the robot at position i teleports to position transfers[i]. A round consist of transfer of all the robots. You need to find the numbers of positions which are never empty.

Please do not give solutions just give the reference to the problem!!

Теги graph, dfs and similar, cycle detection

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский cryptic-mortal 2026-03-14 23:05:35 417 Initial revision (published)