Android Engineer Interview Questions

10,446 android engineer interview questions shared by candidates

The problem involves processing a 2D array representing an image, where each pixel is either a `0` or `1`. The array may contain one or more rectangular regions of `0`s surrounded by `1`s. The tasks are: 1. **Identify Rectangles**: Write a function that detects all rectangles of `0`s in the 2D array, returning the coordinates of the top-left and bottom-right corners for each rectangle. 2. **Handle Multiple Rectangles**: Adapt the solution to correctly identify and manage multiple separate rectangles within the image. 3. **Check Point Inside Rectangles**: Implement functionality to determine if a given point is inside any of the detected rectangles.
avatar

Senior Android Developer

Interviewed at Reddit

3.9
Oct 11, 2024

The problem involves processing a 2D array representing an image, where each pixel is either a `0` or `1`. The array may contain one or more rectangular regions of `0`s surrounded by `1`s. The tasks are: 1. **Identify Rectangles**: Write a function that detects all rectangles of `0`s in the 2D array, returning the coordinates of the top-left and bottom-right corners for each rectangle. 2. **Handle Multiple Rectangles**: Adapt the solution to correctly identify and manage multiple separate rectangles within the image. 3. **Check Point Inside Rectangles**: Implement functionality to determine if a given point is inside any of the detected rectangles.

I was interviewed by two employees from the IT development team, I needed to remove duplicate entries from an array without modifying the order. On my answer I used a list, the answer was correct but I needed to improve it using hash map. They asked me how a binary tree works and I the complexity using my solution, searching with binary trees and hash maps and I couldn't explain at all.
avatar

Android Developer

Interviewed at Booking.com

4.1
Jan 27, 2014

I was interviewed by two employees from the IT development team, I needed to remove duplicate entries from an array without modifying the order. On my answer I used a list, the answer was correct but I needed to improve it using hash map. They asked me how a binary tree works and I the complexity using my solution, searching with binary trees and hash maps and I couldn't explain at all.

They asked about threads, Java OOPS concepts, it's real use cases, Singleton and other design patterns. In Android they asked about Application.xml, services, broadcast managers, timer and alarm, Activity lifecycle, Nofication and Notification.Builder?
avatar

Android Engineer

Interviewed at Airpush

3.6
Apr 6, 2017

They asked about threads, Java OOPS concepts, it's real use cases, Singleton and other design patterns. In Android they asked about Application.xml, services, broadcast managers, timer and alarm, Activity lifecycle, Nofication and Notification.Builder?

Viewing 121 - 130 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 10,446 interview questions and reports from Android engineer interviews. Prepare for your interview. Get hired. Love your job.