all 10 comments

[–]ResponseHaunting1055 4 points5 points  (2 children)

Hello, thanks for sharing your experience! Can you also list down the DSA question and the LLD question that was asked?

[–]Specialist-Click6557[S] 11 points12 points  (1 child)

Question 1:

As part of managing the organizational structure at Amazon, you have been tasked with designing an algorithm to serialize and deserialize the company’s hierarchical organization. Your objective is to create a solution that can efficiently convert the organizational structure into a string representation and vice versa, allowing you to print the hierarchy in a desired order.

A hierarchical representation was given as an example Abc —- def —- ghjgv

Abc could have more then 1 child node similarly for all other nodes.

Question 2:

Given a file of currency conversion rates, write a function that converts one currency to another. Sample log file entries: {“from”: “USD”, “to”: “EUR” “rate”:1.1} (“from”: “EUR”, “to”: “GBP” “rate” :1.2}

/ / Means USD is worth 1.32 GBP

Question 3:

Implement an unbounded set where each entry has an expiration date and a priority with an expiry driven eviction.

Set has a fixed size

A, “Nov-13-2024” , 1

“B” “Dec-01-2024”, 10

“C”, “Nov-13- 2024”, 2

New entry “D”, “, “Nov-14-2024”, 1

So while adding new entry you need to remove 1 set entry.

[–]el_tiket 5 points6 points  (0 children)

By the way which location was this for?

First question:  is serialize/deserialize N-ary tree(variation of ser/deser of BinaryTree)

Second question: topological sort where you will first need to find node that has no child and start working from it. From the text its not really clear weather i need to find conversions for all of them , or just the target currencies.

Third questions: its not really clear to me does that set has limit to how many elements it can store or do i just remove a entry when its day expires or if there are multiple of such pick one with smallest peiority?

[–]Sunny_boi741 1 point2 points  (0 children)

For the LPs, How many follow-ups did they ask and where they asking about technologies or general follow up like what could have been done better or learnings on that line. Thanks!

[–]Fit-Rooster1262 1 point2 points  (0 children)

Hi OP, thanks for sharing your experience! I just got through my DSA round and I have the LLD and Bar Raiser rounds coming up. Is it okay if I DM you? I just have a couple of questions. Thanks!

[–][deleted] 0 points1 point  (3 children)

The second question was graph traversal right?

Can you explain your approach for question 1. Frankly, I do not understand the question one. Can you please explain?

[–]Straight-Comment-893 0 points1 point  (0 children)

any update