VISA, Recently Asked Questions for On-Campus Tests, October, 2022 | Series Solver | Assigned Parking
VISA · Question · Posted Nov 2022
Question 1 <problem>244</problem> Series Solver Given an array of strings, all but one will have a similar pattern of distances between character values. One will have a different pattern, the odd one out. Example Given series = ['ACB', 'BDC', 'CED', 'DEF'], the distances for ACB, BDC and CE are (2, -1). For DEF, the distances are (1, 1) so it is the odd one out. Function Description Complete the functino findOdd in the editor below. findOdd has the following parameter(s): ...
The full answer & interview discussion are available to premium members.
Log in Create a free account