We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If maxArea, minWidth, maxHeight, and maxWidth are all initialized as 0, how does the algorithm ever fall into this while loop?
maxArea
minWidth
maxHeight
maxWidth
while (right - left) >= widthStep
A few lines above, left and right are defined as
left
right
left = Math.max options.minWidth, Math.sqrt(maxArea*aRatio) right = Math.min maxWidth, maxHeight*aRatio
but that returns 0 for both, correct?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If
maxArea
,minWidth
,maxHeight
, andmaxWidth
are all initialized as 0, how does the algorithm ever fall into this while loop?A few lines above,
left
andright
are defined asbut that returns 0 for both, correct?
The text was updated successfully, but these errors were encountered: