Panda Guru LogoPanda
Guru

ServiceNow ASE Role Interview Experience

Round 1: Online Test on HackerRank (2 DSA + 1 SQL)

Questions:

  1. Maximum sum of mountain elements of size 3: Given an array of integers in any order, return the maximum of a+b+c where a, b, c are subsequences in the array, and a < b > c.
    Difficulty: Easy LeetCode

  2. Numbers of Possible Arrays in Each Query: Given an array of integers, its totalCost is calculated as follows, where n = the number of elements in the array and the array itself is named element.

    currentMaximumElement = element[0] totalCost = 0 for ( i = 1; i < n; i += 1){ if (element[i]>currentMaximumElement){ currentMaximumElement=element[i] totalCost+=1 } }

    Given three values, n, m, and totalCost, find the number of distinct arrays that meet the following criteria. Each array consists of n integers. 1 <= value at index i in each array <= m, where 0 <= i < n. The cost to find the maximum element of each array is equal to totalCost.
    Example: Given values n=4, m=4, and totalCost=2, there are 30 such arrays.
    Function Description:

    vector<int> arraysCount(vector<int> n, vector<int> m, vector<int> totalCost){ }

    Constraints: 1 < q <= 50, 1 <= n[i] <= 50, 1 <= m[i] <= 100, 0 <= totalCost[i] < n[i].

  3. SQL Question: A vaccine is administered in two doses. It is best if the doses are given between 48 and 72 days apart inclusive. Write my SQL query to return the percentage of beneficiaries who received both doses within the recommended time period, rounded to the nearest integer.
    Table: doses (Dose_id, Beneficiary_id, dose_type, vaccination date)

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 2: Technical Interview 1

Questions:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 3: Technical Interview 2

Questions:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 4: Technical + Managerial Interview

Questions:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.