# Maximum Number of Visible Points — Aced

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/5627/maximum-number-of-visible-points
Source observed: 2026-11-04T23:00:07.468Z
Last checked: 2026-11-04T23:00:07.468+00:00
Indexed: 2026-11-06T02:29:00.395+00:00

---

# Maximum Number of Visible Points

We present this as a coding and data-structures-and-algorithms interview question. You stand at a fixed position on top of a hill. Several trees surround you; each tree has an `(x, y)` coordinate and a height. Given your position and the tree positions, write an algorithm to determine the maximum number of trees visible within a specified viewing angle.

Trees in the same direction—on the same line of sight—count as one visible tree because a nearer tree blocks the trees behind it.

## Interview metadata

- **Categories:** [Data Structures & Algorithms](https://www.aced.io/questions?type=algorithms), [Coding](https://www.aced.io/questions?type=coding)
- **Associated roles:** [Engineering Manager](https://www.aced.io/questions?role=em), [Software Engineer](https://www.aced.io/questions?role=swe)
- **Associated companies:** [Hotstar](https://www.aced.io/questions?company=hotstar), [Apple](https://www.aced.io/questions?company=apple)
- **Reported last asked:** 2 months ago
- **Detailed company statistics:** available through [Upgrade](https://www.aced.io/upgrade?src=questions)

## Interview experiences

One experience is shared for this question:

- [Hotstar engineering manager interview](https://www.aced.io/experiences/hotstar-engineering-manager-interview-9b1681) — Hotstar, 2 months ago. The contributor described the process as good but slow and said they needed more practice and more time during the technical interview. The listed role was **Engineering Manager**, **Mid Level / L4**.

## Community answers

No community answers have been contributed yet. You can submit an answer after logging in or signing up. Submitting marks the question complete.

## Related question

- [Maximum Number of Non-Overlapping Substrings](https://www.aced.io/questions/2419/maximum-non-overlapping-substrings)

## Related courses

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

![Engineering Management Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/5AqarwlCDWmr0W7AbMJFwp/16862dab13471f5eb8728b27eb2fbc07/engineering_management_track_compressed_bbabaec4a6__281_29_9a9687c1fb.jpeg?w=800&h=800&fm=webp&q=75)

We help candidates prepare for engineering manager roles at Meta, Google, Amazon, Microsoft, Stripe, and other top companies with mock interviews, frameworks, and advice from senior candidates. The course covers system design, people management, project retrospectives, behavioral interviews, and more.

### [System Design Interviews](https://www.aced.io/courses/system-design-interviews)

![System Design Interviews](https://images.ctfassets.net/x78yjrjc11pq/78x7miFZFjBCrM5GqftrMJ/2f6d26e632c4e7265c49f6a180227edb/system_design_track_compressed_26ac98a46e__281_29_5be2280f31.jpeg?w=800&h=800&fm=webp&q=75)

We teach candidates how to answer current system-design questions across product, infrastructure, and AI domains. The course includes in-depth video examples, written breakdowns, reference patterns, and mock-interview videos featuring senior engineers and managers.

## Access and answer controls

- Detailed company statistics require [Upgrade](https://www.aced.io/upgrade?src=questions).
- An answer can be submitted after logging in or signing up.
- Submitting an answer marks the question complete.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F5627%2Fmaximum-number-of-visible-points&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%2F5627%2Fmaximum-number-of-visible-points). Opening a form does not execute a tool.