Find Jobs
Hire Freelancers

binarymap print

$10-30 USD

В роботі
Опублікований almost 8 years ago

$10-30 USD

Оплачується при отриманні
Write a function that prints out all of the elements in a binary tree in a very specific order. The order needs to start at the furthest depth and work its way up. At the furthest depth/level, you need to print out all of the elements from most right node to most left node. At the second furthest depth/level the elements need to be printed out from the most left node to the most right node. The 3rd furthest is right to left and the 4th furthest is left to right etc. This repeats all the way up the tree. For example, check out the attached png. There is an example binary tree which would have the following output: "28,21,17,12,8,3,-2,-8,-5,5,15,25,20,0,10" struct Node { Node* left; Node* right; int data; } void PrintTraversal(const Node& root) { //code goes here };
ID проекту: 10618725

Про проект

2 пропозицій(-ї)
Дистанційний проект
Активність 8 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
2 фрілансерів(-и) готові виконати цю роботу у середньому за $40 USD
Аватарка користувача
I would like to apply for this job. I have a good knowledge of different data structures and algorithms.
$25 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор UNITED STATES
dallas, United States
5,0
34
Спосіб оплати верифіковано
На сайті з вер. 11, 2013

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.