My solution get runtime error Last executed input: . But I think I have handled empty array in myde code:
if(points == null)
if(points.length < 2)
Anybody has the same issue? Do you have any idea on this? Thanks.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.