Description: Submission: 123456789 class : def heightChecker(self, heights: List[int]) -> int: l = len(heights) sorted_heights = sorted(heights) ans = 0 for i in range(l): if (heights[i] - sorted_heights[i] != 0): ans += 1 return ans Acceptance: (ーー゛),好慢,为什么这么慢。。。 赞微海报分享
近期评论