Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 338 Bytes

invert_binary_tree.md

File metadata and controls

11 lines (8 loc) · 338 Bytes

Write some code, that will invert a binary tree. (e.g Lets use JSON representation of a tree for explanation purposes)

{ "root": "Root", "left_leaf": "left", "right_leaf": "right" }

should produce a tree which is represented by the following JSON

{ "root": "Root", "left_leaf": "right", "right_leaf": "right" }