I got invitation for ServiceNow Women Tech Hiring Challenge and then registered for the same.
Round1 : Assessment on hackerrank
2 coding questions [Story based, i only remember one]
Ques:
Two new shops are opening inside a new building in hackerland and k kinds
of items are needed to stock cells at each store given the prices of an items in
two shops choose exactly K indices in such a way that the minimum sum of
arrays first shop and second shop over these indices is maximum.
Ex-1:
N=5
k=3
firstShop = [6, 3, 6, 5, 1]
secondShop = [1, 4, 5, 9, 2]
Choosing subset 0,2,3
The value is minimum(firstShop sum of those indices, secondShop sum of those indices)
min(6+6+5, 1+5+9),
min(17, 15) = 15, which is maximum possible
Ex-2:
int n = 3, k = 1;
firstShop = {10, 2, 4};
secondShop = {1, 9, 6};
choosing subset 2
min(4, 6) = 4 which is maximum possible
In both the question, my 3/4 test cases passed.
Still, I got call for interviews:- She said that I am not shortlisted, but do I want to give interviews, I said Yes, and then there were only two rounds [DSA and HM]
Round2 : DSA
Intro + work I am doing in my current role
a. Input: 12:14 am midnight(22nd ), 11 pm(22nd ), 12:00 am(22nd), 12:40 am(22nd), ..... K = 15 mins
Output: true, true, false, true ….
Input has flights landing timings and I want to return boolean array if the current and previous landed flight time difference is more than K, return true else false.
b. Input had Checkin and Checkout array[dates of checkin and checkout by the user] of same size, and k which was number of Cottages given, i had to return boolean value if all the bookings are possible with given k, at a time only one booking is possible in single cottages from checkin date till checkout date inclusive.
Input:
checkin 1 3 4 5
checkout 2 8 11 8 and K = 2
Output: false
and at last He asked me If i have any questions so i asked few.
This round was for 1 hour, but It went close to 2 hour, the interviewer was Friendly.
Round3 : HM
The interviewer asked me to tell the total APIs I will be need to make Udemy like Application and
then He moved to coding question and asked me to write producer - Cosumer Code implementation, which I didn't remember so I said that I dont know that
then he moved to next coding question which was
Implement Stack using Queues which I did and He was satisfied
and at last He asked me If i have any questions so i asked few.
Verdict: Rejected