Tinder Interview Question

Given an array of numbers return the maximum difference between two of them.

Interview Answers

Anonymous

Jun 17, 2017

Iterate over the array once and keep track of two variables one that holds the minimum value and one that holds the max difference. In every iteration, you might need to update the min value and also update the max difference

Anonymous

Jan 22, 2021

In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the Tinder Android Engineer experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews