LeetCode 598 | Range Addition II | Array | Debug | Java

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

There is no need to initialise r and c to max integer and min integer respectively. We can just set them to m and n respectively. so we can avoid judge statement at line 9 to line 11

ruibinzhang