Pergunta de entrevista da empresa Teradata

write an algorithm to determine if an integer given is prime, write an efficient and inefficient implementation of the algorithm.

Respostas da entrevista

Sigiloso

13 de jul. de 2018

so the most efficient way we know about doing this is to check all numbers less than squareroot of half the integer in question and see if any number less than it is a factor. and the inefficient way i only halved it without considering the squareroot.

Sigiloso

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