Given the root of a binary tree, return the inorder traversal of its nodes' values.
In an inorder traversal, we visit nodes in the following order:
For a Binary Search Tree (BST), inorder traversal returns nodes in sorted order.
Example Tree:
1
\
2
/
3
Inorder traversal: [1, 3, 2]
Follow-up: Can you solve this iteratively using a stack?
root = [1,null,2,3][1,3,2]root = [][]root = [1][1]The number of nodes in the tree is in the range [0, 100].-100 <= Node.val <= 100Click "Run" to execute your code against test cases
Socratic guidance - I'll ask questions, not give answers