# Largest island perimeter in a two-dimensional land-and-water array

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/3438/largest-island-perimeter-2d-array
Source observed: 2026-11-05T00:17:13.000Z
Last checked: 2026-11-05T00:17:13+00:00
Indexed: 2026-11-06T22:35:30.882+00:00

---

# Largest island perimeter in a two-dimensional land-and-water array

We publish interview questions and preparation resources through Aced (formerly Exponent). This coding question asks you to find the largest perimeter of an island represented by a two-dimensional array containing `1`s for land and `0`s for water.

## Question details

- **Interview topic:** Data Structures & Algorithms
- **Question type:** Coding
- **Roles:** [Software Engineer](https://www.aced.io/questions?role=swe), [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer)
- **Companies:** [Bloomberg](https://www.aced.io/questions?company=bloomberg), [Meta](https://www.aced.io/questions?company=meta-facebook)
- **Reported last asked:** 2 years ago
- **Interview records shown:** 2

The available question view does not include a worked solution, input/output examples, constraints, or implementation code. Sign in or sign up to answer the question, and use [Upgrade](https://www.aced.io/upgrade?src=questions) to unlock detailed company statistics for it.

## Community answers

No answers have been contributed by the community yet.

## Related question

- [Given an array of integers and an integer k, find the kth largest element in the array.](https://www.aced.io/questions/4673/coding-interview-find-kth-largest-element-array)

## Related courses

![Machine Learning Engineer Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/6UfkHxUyLQVfDHSfLNQtWa/1be1539a65b4f6f15201f5b573c0a578/ML_Engineer_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

### [Machine Learning Engineer Interview Prep](https://www.aced.io/courses/ml-engineer)

Prepare for machine learning roles at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other top companies with mock interviews, frameworks, and advice from senior candidates. The course covers ML system design, core concepts, coding, behavioral interviews, and more.

![Software Engineering Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/4VkuYewBHUFIVUS5oJDW5h/02e833439b1289f25f38f13f81cbdca3/adobe_stock_optimized.jpeg?w=800&h=800&fm=webp&q=75)

### [Software Engineering Interview Prep](https://www.aced.io/courses/software-engineering)

Prepare for software engineering roles at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Practice data structures, algorithms, system design, people management, and behavioral interviews using mock interviews, frameworks, and advice from senior candidates.

## Answer access

Submitting an answer marks the question complete. The available control requires you to **log in or sign up to answer this question**.

## More Aced preparation areas

We offer interview courses and practice for Product Management, Forward Deployed Engineering, Engineering Management, Software Engineering, System Design, Data Science, Machine Learning, Data Engineering, AI Engineering, Investment Banking, Generative AI, Security Engineering, TPM, Solutions Architecture, UX / Product Design, and BizOps & Strategy. We also offer question libraries, practice, mock interviews and coaching, resume review, salary negotiation, job referrals, and other career resources.

- [All questions](https://www.aced.io/questions)
- [Courses](https://www.aced.io/courses?src=nav)
- [Log in](https://www.aced.io/login?src=nav)
- [Sign up](https://www.aced.io/signup?src=nav)

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3438%2Flargest-island-perimeter-2d-array&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F3438%2Flargest-island-perimeter-2d-array). Opening a form does not execute a tool.