Pergunta de entrevista da empresa Tinder

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

Respostas da entrevista

Sigiloso

17 de jun. de 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

Sigiloso

22 de jan. de 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