Question: MyIntSET.java - Accessors Complete all the accessor functions in MyIntSET from hw 1 : public int size ( ) { public int height ( )
MyIntSET.java Accessors
Complete all the accessor functions in MyIntSET from hw:
public int size
public int height
public int sizeOdd
public int sizeAtDepthint k
public int sizeAboveDepthint k
public int sizeBelowDepthint k
public boolean isPerfectlyBalancedS
public boolean isPerfectlyBalancedH
public boolean isOddBalanced
public boolean isSemiBalanced
Each function must obey these restrictions listed in the file. This means, for example, that you cannot call size or height or the helper functions you wrote for them you must compute the size or height directly within the function you are implementing, or its associated recursive helper function.
You MAY use Java's Math.max function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
