ByteDance interview question

Hard Level Leetcode Questions. Find minimum training amount of team