Solutions
We can check each element against its neighbors’ depth and mark it with ‘X’ if the cavity condition is satisfied.
Here is a C++ Solution:
|
|
We can check each element against its neighbors’ depth and mark it with ‘X’ if the cavity condition is satisfied.
Here is a C++ Solution:
|
|