Thank you so much for the solution. I would really appreciate if you do not use industry grade type writer in your later videos, hahaha. Sometimes, it is difficult to hear your voice.
@parthdesai11083 жыл бұрын
HERE'S THE CODE: from decimal import Decimal class Solution: def gcd(self,a,b): while b: a,b=b,a%b return a def Slope(self,point1,point2): dx=point1[0]-point2[0] dy=point1[1]-point2[1] gcd_=self.gcd(dx,dy) return (dx/gcd_,dy/gcd_) def maxPoints(self, points: List[List[int]]) -> int: if points==None: return 0 n=len(points) if n