Google software engineer interviews cover algorithms, data structures, system design, and coding problems drawn from real interview rounds.
runTests() that accepts a subset of these test cases and returns whether...Input: ListA of integers. A triplet is a sequence of three consecutive elements. A triplet is called zero-sum if the...Input: Arraytext and a dictionary array where each element is in the format "<key>:<id>". Here key is a token string and id...Input: ArrayStreamBuffer class that buffers a stream of integer latency samples in FIFO order and supports O(1) access to both the minimum and maximum...Input: Integer(s)PathRouter class that maps URL-like path patterns to handler names. Patterns may contain wildcard segments (*) that match any...Input: Number(s)+ and -, and parentheses ( and ), simplify...Input: Stringm x n binary grid where each cell is either '1' (land) or '0' (water). A group of connected land cells (connected horizontally...Input: 2D grid1s in a binary matrix.m x n binary matrix filled with 0s and 1s, your task is to return the area of the largest rectangle containing only 1s. You must implement maximalRectangle(matrix: List[List[int]]) -> int.Example 1:1s in the matrix.Constraints:m == matrix.lengthn == matrix[i].lengthO(m*n) time.findShortestPath(start: Point, end: Point) -> List[Point], which returns the shortest path as a list of Points from the start to the end. Assumptions include that the environment is represented as a 2D grid where passable and non-passable terrains are indicated.Point: A representation of a coordinate with x and y attributes.Example 1:N x N with N ≤ 1000.0 and N-1.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free