Pergunta de entrevista da empresa Medallia

1. Implement a function to check if a string is palindrome or not 2. Given a cost function and a budget find the maximum quantity you can buy given those 2 parameters

Respostas da entrevista

Sigiloso

13 de out. de 2015

1. Simple enough, just put a pointer in the begining and the end of the string and iterate inside and see if there is differing element 2. Find the upper limit of things that you can buy by exponentially increase the quantity. Then just do binary search with 1, and the upper limit as the starting paraemeter

Sigiloso

26 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 Medallia Software Engineering experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews