You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Understand what the interviewer is asking for by using test cases and questions about the problem.
P-lan
Plan the solution with appropriate visualizations and pseudocode.
General Idea: Loop through each product, and add it to a new dictionary with "pass" or "fail" depending on its score.
1) Categorized products dict start empty
2) For each product, check score
a) If below threshold, add product to categorized and map to "fail"
b) Otherwise, add product to categorized and map to "pass"
3) Return the categorized products