LeetCode
Question
·
Jul 2022
TikTok | OA | Knapsack w/o profit
492 views
3 replies
Question Details
static int knapSack(int W, List<Integer> wt) { int n = wt.size(); // Base Case if (n == 0 || W == 0) return 0; // If weight of the nth...
Full Details
🔒
Unlock all TikTok questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a tiktok interview for a swe role during the oa round reported in 2022.
It covers the following topics: Dynamic Programming .