Pergunta de entrevista da empresa Huawei Technologies

greedy and priority queue; check if a point is on a straight line