coder's snippet #DailyCodingChallenge Day 274 Task: Find the maximum distance between two houses with different colors. Solution: Compare the first house with all from the end, and the last house with all from the start. The largest valid gap is the answer. #LeetCode

coder_s_Snippet's tweet image. coder's snippet
#DailyCodingChallenge
Day 274
Task: Find the maximum distance between two houses with different colors.
Solution: Compare the first house with all from the end, and the last house with all from the start.
The largest valid gap is the answer.
#LeetCode

United States 趨勢
Loading...

Something went wrong.


Something went wrong.