Completed Array-2#1868
Conversation
Disappeared Numbers (Dissapper_number.py)Strengths:
Areas for improvement:
Overall, this is an excellent solution. VERDICT: PASS max and min (Game_of_life.py)It appears there has been a mix-up in your submission. You submitted a solution for the "Game of Life" problem (LeetCode 289) instead of the "max and min" problem. For the "max and min" problem, you need to find the minimum and maximum values in an array with a constraint on the number of comparisons (less than 2*(N-2)). Your "Game of Life" solution is well-written and efficient. However, for the "max and min" problem, you should implement a different approach. The reference solution uses a method that processes elements in pairs to reduce the number of comparisons. Here's a brief explanation:
Please resubmit a solution for the correct problem. If you need help with the "max and min" problem, let me know. VERDICT: NEEDS_IMPROVEMENT Life GameYour solution for the Life Game problem is excellent. It correctly implements the in-place update with O(1) space and O(m*n) time. The use of markers (2 and 3) is appropriate and handles the simultaneous update requirement. Your code is clean and well-commented. Strengths:
Areas for improvement:
Note: The first file "Dissapper_number.py" is for a different problem (Find Disappeared Numbers) and should not be included in the same submission for the Life Game problem. Make sure to submit only the relevant code for each problem. VERDICT: PASS |
No description provided.