Domanda di colloquio di Amazon

Normal Amazon-esque behavior questions, one medium array, and one hard graph leetcode problem with a twist.