You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Leetcode-863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)| All Nodes Distance K In Binary Tree |[c++](./leetcode/863.all-nodes-distance-k-in-binary-tree.cpp), [python3](./leetcode/863.all-nodes-distance-k-in-binary-tree.py)| Hash Table | O\(N\)| O\(N\)| - |
421
422
|[Leetcode-432](https://leetcode.com/problems/all-oone-data-structure/)| All Oone Data Structure |[c++](./leetcode/432.all-oone-data-structure.cpp), [python3](./leetcode/432.all-oone-data-structure.py)| Hash Table | O\(1\)| O\(N\)| - |
422
423
|[Leetcode-106](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/)| Construct Binary Tree From Inorder And Postorder Traversal |[c++](./leetcode/106.construct-binary-tree-from-inorder-and-postorder-traversal.cpp), [python3](./leetcode/106.construct-binary-tree-from-inorder-and-postorder-traversal.py)| Hash Table | O\(N\)| O\(N\)| - |
423
424
|[Leetcode-105](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)| Construct Binary Tree From Preorder And Inorder Traversal |[c++](./leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.cpp), [python3](./leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.py)| Hash Table | O\(N\)| O\(N\)| - |
|[Leetcode-863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)| All Nodes Distance K In Binary Tree |[c++](./leetcode/863.all-nodes-distance-k-in-binary-tree.cpp), [python3](./leetcode/863.all-nodes-distance-k-in-binary-tree.py)| Breadth-First Search | O\(N\)| O\(N\)| - |
711
713
|[Leetcode-637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)| Average Of Levels In Binary Tree |[c++](./leetcode/637.average-of-levels-in-binary-tree.cpp), [python3](./leetcode/637.average-of-levels-in-binary-tree.py)| Breadth-First Search | O\(N\)| O\(N\)| - |
712
714
|[Leetcode-102](https://leetcode.com/problems/binary-tree-level-order-traversal/)| Binary Tree Level Order Traversal |[c++](./leetcode/102.binary-tree-level-order-traversal.cpp), [python3](./leetcode/102.binary-tree-level-order-traversal.py)| Breadth-First Search | O\(N\)| O\(Width\)| - |
713
715
|[Leetcode-199](https://leetcode.com/problems/binary-tree-right-side-view/)| Binary Tree Right Side View |[c++](./leetcode/199.binary-tree-right-side-view.cpp), [python3](./leetcode/199.binary-tree-right-side-view.py)| Breadth-First Search | O\(N\)| O\(W\)| - |
|[Leetcode-863](https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/)| All Nodes Distance K In Binary Tree |[c++](./leetcode/863.all-nodes-distance-k-in-binary-tree.cpp), [python3](./leetcode/863.all-nodes-distance-k-in-binary-tree.py)| Depth-First Search | O\(N\)| O\(N\)| - |
751
754
|[Leetcode-637](https://leetcode.com/problems/average-of-levels-in-binary-tree/)| Average Of Levels In Binary Tree |[c++](./leetcode/637.average-of-levels-in-binary-tree.cpp), [python3](./leetcode/637.average-of-levels-in-binary-tree.py)| Depth-First Search | O\(N\)| O\(N\)| - |
// Given the root of a binary tree, the value of a target node target, and an integer k, return an array of the values of all nodes that have a distance k from the target node.
# Given the root of a binary tree, the value of a target node target, and an integer k, return an array of the values of all nodes that have a distance k from the target node.
0 commit comments