Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is my Java code. I do not know how to add the size. the error is Variable expected. basically, I want to compare the
This is my Java code. I do not know how to add the size. the error is Variable expected.
basically, I want to compare the size of different array, if one is larger than another one. I can add the size of smaller one to the larger one. and next time when I call the size again, I need the result size instead of the original size.
Thank you.
//check the size of the tree private int sz(int i) { int size 0; for (int num = : 0; numStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started