I applied through a recruiter. I interviewed at ServiceNow (New Delhi)
Interview
Question :find the kth missing element from left most in an array (4,7,9,14,15) k=3,output 8 missing=5,6,8,10,11,12,13
Intilally I have solved in an approach in few mins ,but it was not optimal and later I have been asked to optimize the both space & time complexity .I have solved the space complexity approach in 0(1) .And again interviewer asked to optimize the time complexity.I have told my scenario of optimizing the time complexity ,and he again asked me again to write code .
Overall I have written multiple approaches and improved my solution to optimize both time & space complexity each time.
Finally I have given an approach with optimal solution,but I couldn't able to code the last optimal solution as the time got consumed while discussing all the approaches to make solution as optimal.
And later he asked me some javascript questions which I answered most of them.
I request to all the interviewers first please consider how the candidate was making his efforts to make a solution as optimal or while giving the problem ,tell them you need a optimal solution in a specific time limit and give them some time to think to make a progress.
Interview questions [1]
Question 1
Question :find the kth missing element from left most in an array (4,7,9,14,15) k=3,output 8 missing=5,6,8,10,11,12,13
I applied online. The process took 2 weeks. I interviewed at ServiceNow (Amsterdam) in Oct 2019
Interview
After applying via LI I've got a call from recruiter. It was a pleasant conversation and she sent me a codility test. I passed it easily and waited for the next step.
After a week I received an email that another candidate accepted offer and position is filled. They told that next year new positions will be opened and I can continue from the moment when we stopped. Which is absolutely fine.
Next year came, new positions were open. I sent an application, email and private message to them and got complete silence everywhere.
Not sure what does that mean. Maybe they are not interested in myself. But why not to say that?
Horrible Interviewer -
I had a very bad experience with the service now interview. The interviewer was very rude. He asked a question and I gave him an efficient solution but he wanted me to solve it in a different way. He knew 1 approach and even though my solution was optimized, he didn't agree and wanted me to solve as per the solution he knew. I told him there can be multiple solutions to a single problem and If the solution is efficient in time and space complexity then it is good. He started talking rudely and told me that my solution is not correct and his way is correct (which I later checked online that he was referring to a geekstogeeks solution and my solution was also equally good).
Service Now should train interviewers.