Yandex interview question

Two threads prints Ping Pong one by one.

Interview Answer

Anonymous

3 Feb 2023

Failed because of nervous, but resolve this task after in several minutes used AtomicBoolean, while loop in each thread

1