Need Javascript Recursive function Urgent !

In attachment, you will find an Excel sheet with 5 columns.

Columns A and E are not important.

Column B are the parents of their children in columns C in quantity of column D.

For exemple, parent 12 has one child which is 13 (qty 3), which in turn has 4 children 15,16,17,18 (qty 1 each).

Beware : 13 has another parent (11 - qty 1), which means that the cumulated quantity of 15, 16, 17, 18 is 4 each in total, if we consider that 13 goes into 11 (1x) and into 13 (3x).

I need two recursive functions :

1) Create a tree where each root includes a "children" array containing its respective child_id and qty. For example, 13 and it children must appear twice, once under 11 and once under 12.

Parameters :

- array of links with parent_id, child_id, quantity

- root node (if not mentionned, take the one with parent = null)

2) Create a list of use cases. For each child, determine the path to the root and the cumulated quantity.

Parameters :

- array of links with parent_id, child_id, quantity

- root node (if not mentionned, take the one with parent = null)

Example for root = 11:

child_id: 15, root_id: 13, cumulatedQty: 1, path: [{level:1, child_id: 15, parent_id: 13, qty: 1}]

child_id: 15, root_id: 12, cumulatedQty: 3, path: [{level:1, child_id: 15, parent_id: 13, qty: 1}, {level:2, child_id: 13, parent_id: 12, qty: 3}]

child_id: 15, root_id: 11, cumulatedQty: 4, path: [{level:1, child_id: 15, parent_id: 13, qty: 1}, {level:2, child_id: 13, parent_id: 12, qty: 3}, {level:2, child_id: 13, parent_id: 11, qty: 1}, {level:3, child_id: 12, parent_id: 11, qty: 1}]

Deliverables : 2 functions, testable in JSFiddle or similar.

Very ugent. Thanks.


Beceriler: Javascript, jQuery / Prototype

Daha fazlasını gör: bind javascript, javascript class recursive function, understanding recursion javascript, Need an existing template redesigned with a specific target market in mind. I need a total of two well designed templates to cho, Hello i need 100$ in NETELLER, i am ready to pay here 160$ in advance !URGENT, recursive function example, introduction to recursive function in c programming, need javascript developer in delhi, in overland park ks how much will i need to pay a freelance bookkeeper to enter data in quickbooks, hello i need urgent typist you just have to write in notepad from image i, php example recursive function drop menu, recursive function php dropdown menulist example, javascript sort function, need javascript programmer, javascript range function, javascript age function, recursive function linked list, javascript find function, javascript search function, recursive function search linked list

İşveren Hakkında:
( 6 değerlendirme ) Courrendlin, Switzerland

Proje NO: #15175917



Hi, So to port the script into jsfiddle I will parse the excel file into csv data (temporary) then in real app you should use server side script to read the excel file content Relevant Skills and Experience I will upd Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 150%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(219 Değerlendirme)

Bu iş için 26 freelancer ortalamada $160 teklif veriyor


I have 7+ years in javascript - jquery developers with very good experience. Relevant Skills and Experience I am good in Javascript, jQuery / Prototype Proposed Milestones $200 USD - Cost

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(46 Değerlendirme)

Hello, I have great experience in javascript and can do these 2 recursive functions related work perfectly. let me know when can we start the work Relevant Skills and Experience javascript Yes I have strong knowled Daha Fazla

in %bids___i_period_sub_35% gün içinde150%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(118 Değerlendirme)

Hi I am interested in this project. I am high skilled at HTML5 and Javascript programming. I am also good at algorithmic problems. Let us discuss in detail Thank you Relevant Skills and Experience Javascript Proposed Daha Fazla

in %bids___i_period_sub_35% gün içinde222%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(4 Değerlendirme)

Sir, I will do it for you with perfection and I will keep working on it until you are 110% satisfied with results. Relevant Skills and Experience For more than 7 years I’ve worked in this field and so I am accustomed Daha Fazla

in %bids___i_period_sub_35% gün içinde200%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(48 Değerlendirme)

//**READY TO START RIGHT AWAY **// You are looking for someone to fix the JS function. Relevant Skills and Experience We are having more then 5+ years of experience . We did over 200 websites so very much suitable to Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(30 Değerlendirme)

From your brief description I noticed that you the javascript developer and I have more than 8 years of experience in javascript. Relevant Skills and Experience Expert in PHP-OOP,CakePHP,Wordpress, MVC, REST API, H Daha Fazla

in %bids___i_period_sub_35% gün içinde290%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(5 Değerlendirme)

hi. i can do it, but i have a few question Relevant Skills and Experience i know javascript Proposed Milestones $100 USD - program how are you planning to access that .xlsx file from a script? is it possible to make Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(8 Değerlendirme)
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(13 Değerlendirme)

A proposal has not yet been provided

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(9 Değerlendirme)

Nice to meet you, dstadel3. do you need two recursive functions : 1) create a tree where each root includes a "children" array containing its respective child_id and qty ?.I can help you Our skills sam Daha Fazla

in %bids___i_period_sub_35% gün içinde165%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(9 Değerlendirme)

Consider it Done ! We are experts in Joomla, Wordpress, Core PHP, MYSQL, Javascript, JQuery / Prototype, AJAX, Programing, HTML, CSS, Bootstrap technologies, Software Architecture and Software Development. We are certi Daha Fazla

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)
in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Hello. I can help you with this project. I can start as soon as you want. I just want to clear something out. What should exactly the functions return? We can discuss everything if you contact me. Regards, Dan.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)

i am pretty experienced with wordpress,Javascript, jQuery / Prototype.. I have all the skills you need for your job. I do front end as well as back end development. message me so that we can discuss Relevant Skills an Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

want to discuss this in detail before start this project, as we have team of professionals so we can manage this project,but first have a chat on this. Relevant Skills and Experience Skills :- Javascript, jQuery Pro Daha Fazla

in %bids___i_period_sub_35% gün içinde135%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(10 Değerlendirme)

Hello Project Owner, Greeting of the day, We have gone through with your initial requirements and analyzed that our skills best suits with your project requirements. We have 4 year of experience in web development and Daha Fazla

in %bids___i_period_sub_35% gün içinde35%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)

Hello Sir/Ma'am, I am 4+ Years of experienced Web developer and designer , have referred the requirements though would like to ask you few things on this. Thanks Relevant Skills and Experience https://www.ropedup. Daha Fazla

in %bids___i_period_sub_35% gün içinde111%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(2 Değerlendirme)

We have understand whatever the requirements you want and delivers the project within 3 days please respond. . Relevant Skills and Experience We are specialized in html,css,java script,jquery,java,mySQL,wordpress,spri Daha Fazla

in %bids___i_period_sub_35% gün içinde166%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Thanks for the opportunity

in %bids___i_period_sub_35% gün içinde222%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)