Google | Coding Round (GOCC) | July 2021
Google · Question · Posted Jul 2021
Summary 2 problems, 1 hour Almost all languages allowed Problem 1 You are given an array arr containing N distinct integers . You must perform the following operations on this array. For each pair of integers of the array, you must find the absolute difference D between these integers and insert D into the array. if D is already an element of the array, then you are not required to insert it. You repeat task 1 until the array cannot ...
The full answer & interview discussion are available to premium members.
Log in Create a free account