Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch 4. Trees and Graphs / 4.2_Minimal_Tree.cpp syntax error #98

Open
ndomx opened this issue Aug 25, 2022 · 1 comment
Open

Ch 4. Trees and Graphs / 4.2_Minimal_Tree.cpp syntax error #98

ndomx opened this issue Aug 25, 2022 · 1 comment

Comments

@ndomx
Copy link

ndomx commented Aug 25, 2022

The code declares a pointer in line 10, but doesn't use pointer notation to access it

TreeNode* newNode = new TreeNode(arr[mid]);
newNode.left = createMinBST(arr, start, mid - 1);  // Should be newNode->left
newNode.right = createMinBST(arr, mid + 1, end); // Should be newNode->right
@dhruvaop
Copy link

dhruvaop commented Jun 28, 2023

I think this repostry is not managed 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants