Meta | Android | E4 | Onsite | USA
Company: Meta
Role: E4
Interview Stage: Onsite
Location: USA
Year: unknown
Original Post Content:
Coding Round 1:
https://leetcode.com/problems/longest-common-prefix/description/
https://leetcode.com/problems/powx-n/description/
Coding Round 2:
https://leetcode.com/problems/find-largest-value-in-each-tree-row/description/
given an array of number, check if there exists a triple(a, b, c) which satisfies
a^2 + b^2 = c^2
System Design:
Design Facebook newsfeed
I followed the template similar to this - https://github.com/weeeBox/mobile-system-design
I talked about tradeoffs for MVC/MVP/MVVM for architecture, Flows/LiveData/RxJava for data propagation
Used usecases in my design, had offline support, in-memory cache for faster access
Behavioral:
Conflict Resolution
Negative feedback from manager
Change in Architecture in middle of Project
Follow-up Coding Round:
https://leetcode.com/problems/valid-palindrome-ii/
Given a 2d grid with height of land at each cell, A path exists if you can travel from position 0,0 to m,n(only allowed 4 directions). You can travel to a cell if the value at a cell is higher than water level
find the lowest water level at which path is not possible
example:
[[S, 6, 1, 2],
[5, 2, 1, 4],
[3, 9, 4, E]]
water level: 1 - path exists
[[S, 6, X, 2],
[5, 2, X, 4],
[3, 9, 4, E]]
water level: 2 - path exists
[[S, 6, X, X],
[5, X, X, 4],
[3, 9, 4, E]]
water level: 3 - No path
[[S, 6, X, X],
[5, X, X, 4],
[X, 9, 4, E]]
Output: 3
Result: Got Offer
165K | 315K/4yr | 15%