Skip to content

Instantly share code, notes, and snippets.

@austinglaser
Created August 11, 2013 06:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save austinglaser/6203601 to your computer and use it in GitHub Desktop.
int bstNode<Item>::increment(int count)
{
increment(count);
if (left_field)
count= left_field->size()+1;
else
{ return 0;}
if (right_field)
count= left_field->size()+1;
else
{ return 0;}
}
@nityan
Copy link

nityan commented Mar 21, 2014

You have infinite recursion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment