Find Jobs
Hire Freelancers

BinaryNode class

$30-250 USD

Completed
Posted over 9 years ago

$30-250 USD

Paid on delivery
Write the 5 methods that are next to your name. All methods must be added to the BinaryNode class. Feel free to use the methods in that class and to write your own private helper methods. Follow the same rules for submitting the homeworks as in Hw#1 and Hw#2. Method 1. Add the method prePlusIn to the BinaryNode class. The method has the header public static <T> BinaryNode<T> prePlusIn( T[] pre, T[] in) and takes as input the preorder and the inorder traversals of a the items of a binary tree and constructs a tree with these traversals. It returns the root of the tree. Assume that none of the two traversals has duplicate items. The method throws an IllegalArgumentException if it is not possible to construct the tree. Method 4. Add the method public void iterativePostOrder() that prints the nodes of the tree with root this in postorder, without using recursion. Use a stack. Method 5. Add the method public void printByLevels() That prints the nodes of the tree by levels. Use a queue. Method 8. Two trees are equal if they have the same address set and the values at the same address are equal. Write the method public boolean equals(BinaryNode<T> r) that returns true if the tree r is equal to this and false otherwise. Some of the items may be null. Use equals to check for equality. Method 10. Write the method public static <T> ArrayList<T> longestPath(BinaryNode<T> root) that returns a longest path in the tree root. The first item of the array list is the value of the root.
Project ID: 6604455

About the project

5 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I read the requirements and I have most of the tree code ready.. Could complete the rest of the assignment by today only. About Me: I am a software professional with 6+ years of experience in Java/J2EE stack and other web technologies. I am bidding low bcoz I need work as I am free tonight. You can pay me after the work is done and you are satisfied. Please respond back in case you like my bid and profile. Thanks, Dharmendra
$55 USD in 1 day
4.8 (19 reviews)
4.4
4.4
5 freelancers are bidding on average $98 USD for this job
User Avatar
I have 9+ years of exp in c c++ java j2ee hibernate spring webservices databases. Done multiple projects like this and almost proficient in design patterns..Checkout my completion rate and reviews.
$155 USD in 1 day
5.0 (134 reviews)
8.1
8.1
User Avatar
Dear, I am TOP Java programmer on this site. I did 600+ projects in Java. I can implement this BindayNode clss as per requirements.
$79 USD in 2 days
4.8 (536 reviews)
7.7
7.7
User Avatar
Hello I am Java expert with a lot of experience in helping students with assignments and tutoring. I have reviewed your requirements and understood it. I am familiar with binary trees and confident to handle this project perfectly. Please communicate to discuss further. Regards Anshu
$100 USD in 1 day
4.7 (462 reviews)
7.5
7.5
User Avatar
hi i have seen your yor assignment although you have mentioned it in java/php but that was actually c++. well it doesn't matter what language that is as i can program in c,c++,java,php,c# and VB i can easily complete the work as i am datastructures expert an will deliver it to you by monday Regards, Surbhi
$100 USD in 3 days
4.9 (6 reviews)
3.3
3.3

About the client

Flag of UNITED STATES
cooper city, United States
5.0
6
Payment method verified
Member since Oct 17, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.