"Added solution for pascal"#1178
Conversation
Interview Problem : Two elements sum to target (Problem1.java)This submission appears to be for the wrong problem entirely. The student solved "Pascal's Triangle" (LeetCode 118) instead of "Two Sum" (LeetCode 1). This could indicate:
The Pascal's Triangle code itself is actually quite good - it uses proper variable naming, handles edge cases correctly, and follows clean coding practices. However, since it doesn't solve the assigned problem, it cannot be considered a valid solution. VERDICT: NEEDS_IMPROVEMENT Interview Problem: 0-1 Knapsack ProblemThe code you submitted solves Pascal's Triangle, which is a completely different problem from the 0-1 Knapsack Problem that was assigned. Your implementation is well-written and correct for Pascal's Triangle generation - it uses proper variable naming, has clear logic, and follows good coding practices. However, please ensure you submit the correct solution for the assigned problem. For the 0-1 Knapsack Problem, you would need to implement a dynamic programming solution that considers:
Your Pascal's Triangle code demonstrates good understanding of dynamic programming concepts (building on previous results), which will help you implement the knapsack solution. VERDICT: NEEDS_IMPROVEMENT |
No description provided.