首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
2078专题
Leetcode 2078. Two Furthest Houses With Different Colors
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. Description 2. Solution **解析:**Version 1,两层循环遍历,O(N^2)。 Version 1 class Solution:def maxDistance(self, colors: List[int]) -> int:distance = 0length
阅读更多...