Pergunta de entrevista da empresa X

There were three questions in the coding test which was on the Hackerrank platform. The first question was straightforward. The second one was also easy and had to count the votes for each name and tell which person had the highest votes. The third question was a good one. In this question, we were given a tree, and we were to find the number of prime numbers in a given subtree rooted at a particular node.

Respostas da entrevista

Sigiloso

16 de dez. de 2018

I was able to solve all the three questions. Third question can be done using DFS.

1

Sigiloso

17 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 Twitter Software Engineer(Internship) experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews