摘要: There are n houses evenly lined up on the street, and each house is beautifully painted. You are given a 0-indexed integer array colors of length n, w 阅读全文
posted @ 2022-02-26 15:04 CNoodle 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Given a 0-indexed integer array nums of size n, find the maximum difference between nums[i] and nums[j] (i.e., nums[j] - nums[i]), such that 0 <= i < 阅读全文
posted @ 2022-02-26 01:58 CNoodle 阅读(103) 评论(0) 推荐(0) 编辑