Given N children starting with toy type 0 and Q queries, where each query specifies a range [L, R] to update children's toys to M, find the most common toy and the total number of children who have it…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.