Round 1 - Bar raiser
Create a doggie daycare app:
Create a set that holds elements with an expiration date. Expired elements need to be deleted. Use dict vs queue
Round 3 - Design Patterns
Subscribe / Publish
'''
class EventManager():
self.event_dict = {}
def subscribe(eventName, callback):
pass
def publish(eventName, param)
e = EventManager()
e.subscribe(''category'', lambda x: print(x))
e.publish('category', 'event1') # should print 'event 1'
e.publish('category', 'event2') # should print 'event 2'
'''
Round 4 - Algos and Data Structures
Return all words starting with a prefix
Ex:
Words: [Apple Application Banana Boore Book]
Prefix: 'App', 'Boo'
Return: [Apple, Application], [Boore, Book]
*Interview taken in September 2020 for the Seattle EC2 team