Trees: Is This a Binary Search Tree?

  • + 0 comments

    This one is really bad in c. Not given any starter structures for tree. Not given any input scanning.

    Due to this, the best implementation is to just read input and compare the values in order. Allocating memory to put this in a tree would be a waste.

    if values are out of order, ret "No".