Conversation
|
Your solution for the MergeSortedArray problem is excellent. It is correct, efficient, and well-written. Here are some positive points:
For the other two problems (which were not asked for in this evaluation), your solutions are also correct and efficient. However, note that when submitting solutions for a specific problem, you should only include the code for that problem unless otherwise specified. One minor suggestion for the MergeSortedArray solution: You can consider adding a comment to explain why the second while loop only checks for ptr2 (because if there are remaining elements in nums2, they need to be copied over, but if there are remaining elements in nums1, they are already in place). This might help with clarity. Overall, great job! |
No description provided.