Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice
/ invertTree
Function
invertTree
Leetcode/C++/Invert binary tree.cpp:53–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
root->right=n;
52
}
53
TreeNode* invertTree(TreeNode* root) {
54
swap(root);
55
return root;
56
}
57
58
int main()
59
{
Callers
nothing calls this directly
Calls
1
swap
Function · 0.70
Tested by
no test coverage detected