Content
Interviewer. Create a function that inverts a binary tree. Me a front-end dev. 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 pre id’binary-tree’ 9 31 51 pre 7 style inverted transform: rotateY (180deg) ; style script function invertBinaryTree(element) element.classList.add(‘inverted’); const binaryTreeEl document. getElementById( ‘binary-tree’); invertBinaryTree (binaryTreeEl); script KAPWING