TikTok Interview Question

basic ML questions, leetcode medium/hard