Find Jobs
Hire Freelancers

A custom method Binary Tree Class

$30-250 USD

Cancelled
Posted over 14 years ago

$30-250 USD

Paid on delivery
the problem is I am stuck with displaying the data in a table. In the file attached you can see what I am trying to achieve... I would like to display the binary tree in a table. After lot of pain I managed to figure out how to deal with colspans.. but I don't know how to populate it correctly...The problem is with empty peers... I would like to have a node's method: $tree->nodes[2]->to_table_array(4); Where the parameter is $depth -> how deep it should go So I should get something like: $arr = array( ---[0]=>array(1), ---[1]=>array(2,3), ---[2]=>array(4,null, null, 5), ---[3]=>array(6, null, null, null, null, null, 7, 8) ); The key of the array is the table row or depth of the tree... each then, has an array of ids or null if there is no child there I can set a desired depth (up to 10) and the array must populate for each "layer"/"row" even if it has only nulls! I will nee also test case (with a table like in the attached file) and instead of icons there should be node ids or   for empty cell
Project ID: 588445

About the project

7 proposals
Remote project
Active 14 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
7 freelancers are bidding on average $86 USD for this job
User Avatar
I can do it perfectly and provide you technical documentation as well as full programming guide line ....
$240 USD in 7 days
4.9 (77 reviews)
7.6
7.6
User Avatar
You have PM
$60 USD in 0 day
5.0 (10 reviews)
5.5
5.5
User Avatar
i have a cool working demo for you. Please check PMB for the demo url.
$80 USD in 1 day
4.9 (31 reviews)
5.4
5.4
User Avatar
Hi, please check PMB
$60 USD in 1 day
5.0 (15 reviews)
5.3
5.3
User Avatar
Hello sir, Your requirment: input a array of that type, and display a html table somelike the image? If right, please let us start. Regards, Aking
$50 USD in 1 day
5.0 (2 reviews)
4.1
4.1
User Avatar
i can do it!
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Its a very simple project to me
$60 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SLOVENIA
London, Slovenia
4.8
10
Payment method verified
Member since Oct 20, 2009

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.