Common mid-size companies question
Anonymous User
250

Edit:
Have to define classes, attributes, functions before actual implementation

I suggested to use functions, and have a dictionary of dictionaries, but it def wasn't the approach my interviewer was looking for.

I'm not sure if this is a design question but I've been asked something similar in my last 2 interviews...

In general:

Person A,Person B,Person C...Person N

Person A gives person B money
Person A gives person C money
Person A gives person E money
Person D gives person A money

Output:
Return all of Person A's activity (ie transferred amounts,received, sent from, etc)

What is the best design/approach for a question like this?

Comments (4)