Pergunta de entrevista da empresa ByteDance

One Leetcode python question, One SQL question. Neither question is hard.