Given a BST , used to implement maps with 2-dimensional non negative keys(x,y) o
ID: 3886261 • Letter: G
Question
Given a BST, used to implement maps with 2-dimensional non negative keys(x,y) of input type int and stored in the Class / Structure BinNode in the coordinates vector coordinates, solve the following program, using C or Java.
Implement a function / method rangeQ that, given in input two opposite vertices of a isothetic rectangle (x_1,y_1) and (x_2,y_2), print on the standard output the number of nodes included in the rectangle, that must be considederd as a closed set.
An isothetic rectangle is a rectangle with the edges parallels to the axis