Available question text
Given a binary grid of land and water cells, find the number of islands (4-directionally connected components of land cells) after making at most one edit — either flipping a water cell to land or a land cell to water.
Related questions
Continue with questions that share topics or the same question type.
- Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Walk through Kadane's algorithm and explain the O(n) approach.
Coding
- 1. Count number of islands in matrix (Leetcode challenge)
Coding
- Find a credit card provider based on the credit card number
Coding
- Find Closest Number to Zero
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Find Number of Islands with One Edit Allowed
Reported Aug 1, 2024 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source