servicenow logo
ServiceNow· SDE II

Sum of Elements using Indices | Service Now | SSE | Feb 2024 | DSA | Reject

Result
Rejected
Posted
7 Mar 2024
326 reads

Summary

I interviewed for a Software Staff Engineer position at ServiceNow in February 2024. The interview focused on Data Structures & Algorithms, specifically a problem involving calculating the sum of elements within a given range, and I was unfortunately rejected.

How it went

I recently had an interview for the SSE role at ServiceNow in February 2024. The session primarily revolved around Data Structures & Algorithms, where I was presented with a specific coding challenge. Despite my efforts, the outcome was a rejection.

Questions asked (1)

  1. 01

    Range Sum Query

    Data Structures & Algorithms · Medium

    Given an array of n integers and q queries. Each query is defined by a start index s and an end index e. For each query, I needed to return the sum of elements of the indices from s to e (inclusive).

    Example:
    a=[1,2,3,6,3,2];
    q = 3
    Queries:
    s,e-> [2,3]
    s,e-> [0,4]
    s,e-> [1,2]

    Expected Output Sums:
    sum=[9,12,5]

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at ServiceNow recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!