Intuit OA | SWE Internship 2023 | IIT KGP

Intuit · Question · Posted Jul 2023

4 QUESTIONS | 90 MINUTES Question 1 Given an array of integers numbers, find the first index i for which three consecutive elements numbers[i], numbers[i + 1], and numbers[i +2] are all greater than a given threshold . If there is no such index, return -1. Note: You are not expected to provide the most optimal solution, but a solution with time complexity not worse than O(numbers. length2) will fit within the execution time limit.     EXAMPLE: For numbers ...

The full answer & interview discussion are available to premium members.

Log in Create a free account