diff --git a/subjects/inverttree.en.md b/subjects/inverttree.en.md index 5a3ca76b6..381d7d475 100644 --- a/subjects/inverttree.en.md +++ b/subjects/inverttree.en.md @@ -11,18 +11,27 @@ This means that: - The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. - Every other rules are obviously the same than for a `program`. +### Instructions -### Instructions: Write a function that takes tree and inverts(flips) and returns it. -``` + +### Expected function and structure + +```go type TNode struct { Val int Left *TNode Right *TNode } + +func InvertTree(root *TNode) *TNode { + +} ``` + Example: -``` + +```shell Input: 7 / \ @@ -37,8 +46,3 @@ Output: / \ / \ 13 9 6 3 ``` -Expected function: -``` -func InvertTree(root *TNode) *TNode { -} -```