DSA Round
given a list of timestamps and commodity prices, find out highest commodity price at given timestamp. timestamps are not necessarily in sorted order, there can be multiple entries for a timestamp as well.
follow up - after each timestamp, commodity price entry, we are putting a checkpoint, given a timestamp and checkpoint find maximum commodity prices till then.
Code Design Round
We want to implement a middleware router for our web service, which based on the path returns different strings (these would represent “functions to invoke” in a real application).
Usage:
Router.addRoute("/bar", "result")
Router.callRoute("/bar") -> "result"
follow up - search using wildcard
Router router = Router()
router.addRoute("/foo", "foo")
router.addRoute("/bar/*/baz", "bar")
router.callRoute("/bar/a/baz") -> bar
if input is this -
router.addRoute("/foo/baz", "foo")
router.addRoute("/foo/*", "bar")
discuss and decide which output to return
Applied through referral.
DSA round didn't go well as question seemed confusing
But code design round went well, coded follow up approach as well and tested the code successfully still recruiter said its a reject in this round as well giving baseless feedback like I did not justify my approach at all, did not write log/locks whatever blah blah..not sure what atlassian is doing with interview process and feedback.
Overall very bad experience interviewing