codesONLY / JavaScriptONLY

Knowledge Resource of core fundamentals of JavaScript explained in simple way!
378 stars 182 forks source link

InvertBinaryTree.js #76

Closed gunjapandey closed 2 years ago

gunjapandey commented 2 years ago

In Binary Search trees, I've proposed a solution to one of the most renowned interview questions asked in the "FAANG" firms. Given the root of a binary tree, invert the tree, and return its root.