0959. Regions Cut By Slashes
Last updated
Last updated
**Input:** grid = [" /","/ "]
**Output:** 2**Input:** grid = [" /"," "]
**Output:** 1**Input:** grid = ["\\/","/\\"]
**Output:** 4
**Explanation:** (Recall that because \ characters are escaped, "\\/" refers to \/, and "/\\" refers to /\.)**Input:** grid = ["/\\","\\/"]
**Output:** 5
**Explanation:** (Recall that because \ characters are escaped, "\\/" refers to \/, and "/\\" refers to /\.)**Input:** grid = ["//","/ "]
**Output:** 3