Deep Learning Engineer Interview Questions

286 deep learning engineer interview questions shared by candidates

A set S of n integers originally contains all of the numbers from 1 to n (and no other numbers). Due to corruption, exactly one of the numbers in the set S is duplicated onto another number in the set. The corrupted set has the integers 1 to n, with one number repeated and one missing number. Neither the original nor the corrupted sets are guaranteed to be in order. The original array is not given to us. Write a function which takes an integer array of arbitrary length at runtime (the corrupted set) as input, and returns the duplicated number and the missing number as an array.
avatar

Deep Learning Engineer

Interviewed at Forterra

4.1
Nov 5, 2024

A set S of n integers originally contains all of the numbers from 1 to n (and no other numbers). Due to corruption, exactly one of the numbers in the set S is duplicated onto another number in the set. The corrupted set has the integers 1 to n, with one number repeated and one missing number. Neither the original nor the corrupted sets are guaranteed to be in order. The original array is not given to us. Write a function which takes an integer array of arbitrary length at runtime (the corrupted set) as input, and returns the duplicated number and the missing number as an array.

Viewing 261 - 270 interview questions

Glassdoor has 286 interview questions and reports from Deep learning engineer interviews. Prepare for your interview. Get hired. Love your job.