Domanda di colloquio di TikTok

Binary tree represented as an array, do binary tree operations