Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Aiman Najjar
The solution has a wrong inner loop condition

Aiman Najjar

Nov 6, 2025

The algorithm description says: "While product is greater than or equal to target and left is less than or equal to right:"

However, the actual implementation actually has this condition in the while loop left < len(nums) .

0

0

Comments
Comments