Pergunta de entrevista da empresa ByteDance

I cant remember the question specifically, but both involve greedy algorithm with priority q and binary search.