Company: Kickdrum_13oct
Difficulty: medium
Wi-Fi Coverage Zone Counter Problem Description A network administrator needs to analyze Wi-Fi coverage in a building represented by a grid. Each cell shows whether there's signal coverage ('T') or no coverage ('O'). Connected coverage areas form a single Wi-Fi zone. Count how many separate Wi-Fi zones exist in the building. Input Format Input: 'm' number of rows in the grid 'n' number of columns in the grid A 2D grid where: 'T' represents areas with Wi-Fi coverage 'O' represents areas without Wi-Fi coverage Adjacent coverage areas (horizontally or vertically) belong to the same zone Output Format Output: The total number of separate Wi-Fi zones Constraints Grid dimensions: 1 <= m, n <= 300 Grid contains only 'O' and 'T' characters Examples Example 1: Input: 5 4 TTTO TTOT TTOO OOOO OOOO Output: 1 Explanation: All 'T's are connected horizontally or vertically, forming one large Wi-Fi zone. Example 2: Input: 5 4 TTOO TTOO OOTO OOOT OOOO Output: 3 Explanation: Zone 1: Top-left conne