You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect Turn Condition: The condition used to pop points while building the upper hull is wrong (it keeps right turns instead of left turns).
Incorrect Lower Hull Logic: The loop structure and point access used to build the lower hull are fundamentally flawed and do not follow the algorithm's requirements.
Naive Merging: The upper and lower hulls are simply concatenated, which likely results in duplicated start/end points in the final hull list.
Test Example:
Testing with these set of points gives us incorrect results:
{0, 0}, {4, 0}, {4, 4}, {0, 4}, {2, 2}
Expected : 16 ( Square of side 4 )
Got : 13.6569
The text was updated successfully, but these errors were encountered:
Issues:
Test Example:
Testing with these set of points gives us incorrect results:
Expected : 16 ( Square of side 4 )
Got : 13.6569
The text was updated successfully, but these errors were encountered: