Problem added#1176
Conversation
Interview Problem : Two elements sum to target (Problem1.py)Your submission shows good problem-solving skills by exploring multiple approaches. Here are some specific comments:
Suggestions:
VERDICT: PASS Interview Problem: 0-1 Knapsack ProblemIt appears there has been a misunderstanding. The problem you were asked to solve is the 0-1 Knapsack problem, but your solution is for the Two Sum problem. This suggests you may have confused the problem statements or worked on a different problem. For the 0-1 Knapsack problem, you need to:
Your current solution for Two Sum is well-written and shows you understand different approaches (brute-force, hashmap) for that problem. However, it is not applicable here. Please revisit the problem statement and implement the Knapsack solution using dynamic programming. You can refer to the reference solution provided for guidance on the structure and logic. VERDICT: NEEDS_IMPROVEMENT |
No description provided.