Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #81: Multi-Level Bill of Materials Problem

jjrbondoc
8 - Asteroid
Spoiler
jjrbondoc_0-1632938397208.pngjjrbondoc_1-1632938403902.png

 

BSilverblatt
8 - Asteroid

Thanks for the challenge! Here is my solution:

LiuZhang
9 - Comet
Spoiler
81 - 1.png81 - 2.png

Iterative macro to dynamically add parent level information to child level, then updates the iterated results.

ARussell34
8 - Asteroid

I didn't take this problem along the iterative macro approach path, but I was able to create a solution by identifying where the level matched the parent id values. By using a few joins and multiplications and a final sort, the output followed the given solution!

davidhardister
8 - Asteroid

davidhardister_0-1641416755115.png

 

Watermark
12 - Quasar
12 - Quasar
Spoiler
MT Solution 81.png

Watermark
12 - Quasar
12 - Quasar
Spoiler
MT Solution 81.png

EdoardoAversaTIL
8 - Asteroid
Spoiler
EdoAv_0-1642691493602.png

 

jon_amanrich
8 - Asteroid

My solution!

Spoiler
jon_amanrich_0-1642705015218.png

 

TonyAndriani
9 - Comet

Reposting under my new user ID.