100. SAME TREE || LeetCode || GOOGLE
Автор: Bhavyesh Karangula
Загружено: 2020-08-28
Просмотров: 10
Описание:
Explanation
Think about the base cases and your recursive calls!
Base cases:
1. Are both trees null then return true
2. Are either null then return false
3. Are the two nodes values not the same then return false
4. Return the result of your two recursive calls checking if the current node's left and right subtrees are the same!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: