In line 18, the heap view is not working as it jumps from one child to the other in the binary tree. ```C #include <stdio.h> #include <stdlib.h> struct TreeNode { int data; struct TreeNode* left; struct TreeNode* right; }; int main() { struct TreeNode* root = (struct TreeNode*)malloc(sizeof(struct TreeNode)); root->data = 1; root->left = (struct TreeNode*)malloc(sizeof(struct TreeNode)); root->left->data = 2; root->right = (struct TreeNode*)malloc(sizeof(struct TreeNode)); root->right->data = 3; return 0; } ```
Activity
fixes #18 #16 #9 #20 #6