# 31.12.2025[1970. Last Day Where You Can Still Cross]
Автор: KittyCat, Keyboard and LeetCode
Загружено: 2025-12-31
Просмотров: 9
31.12.2025
[1970. Last Day Where You Can Still Cross](https://leetcode.com/problems/last-da...) hard
[blog post](https://leetcode.com/problems/last-da...)
[substack](https://open.substack.com/pub/dmitrii...)
[youtube]( • # 31.12.2025[1970. Last Day Where You Can ... )

#### Join me on Telegram
https://t.me/leetcode_daily_unstoppab...
#### Problem TLDR
Last day top connected to bottom in 2D matrix #hard #uf
#### Intuition
Invert the problem: go from back and the list becames a "rain of the ground cells".
#### Approach
we can store ground bits inside union-find jump array as an extra bit
#### Complexity
Time complexity:
$$O(n)$$
Space complexity:
$$O(n)$$
#### Code
https://dmitrysamoylenko.com/2023/07/...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: