Home / MCQ Bank / Computer
Computer Trees In Data Structures

How do you determine if a binary tree is a binary search tree?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • By checking if each node's left children are smaller and right children are larger.

Related Computer Questions

What does the "async" and "await" keywords do in C#? Why do we require hamming codes? What will be the output of the following C code? #include<stdio.h> enum Shyam { a,b,c=5 }; int main() { enum Shyam s; b=10; printf("%d",b); } The Register - to - Register (RR) instructions What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str="Steve Jobs founded the apple"; string str2 = str.substr (6, 4); unsigned pos = str.find("the"); string str3 = str.substr (pos); cout << str2 << ' ' << str3 << '\n'; return 0; }