TikTok interview question

Difference between xgboost and random forest Leetcode: maximum subarray sum