Rafay Systems Interview Question

Basic DSA: Next Greater Element.

Interview Answer

Anonymous

Mar 6, 2026

Graph : Given a Binary tree and a node where a fire starts at t=1s, explain how would you give a list of all nodes that catch fire at each second starting from t =1 to t=n ( Given).