News for hackers. Stuff that matters.
Re:Python’s tug of war between beginner-friendly and advance... by adamjb on Thursday February 04, 2021 @09:33PM (#26032391)
If you're gonna bring numpy into it you may as well use np.diff():

    def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
        return np.diff(sorted(x for x, _ in points)).max()

There are no comments on this comment yet.