• Companies
  • Sign in
  • Get lifetime access, $329
    GOTHAMLOOPDemo
    Sign inBuy nowBuy nowBuy now · $329 · $329
    GOTHAMLOOPDemo
    Sign inBuy nowBuy nowBuy now · $329 · $329
    GOTHAMLOOPDemo
    Sign inBuy nowBuy nowBuy now · $329 · $329
    Agoda

    Agoda

    Interview Question Bank · … questions

    Filters

    Category

    Frequency

    Loading question…

    Agoda

    12 interview questions·Updated daily

    Free question · start here

    Distance to Next Greater Element

    Coding·Asked often·Phone screen

    For each arr[i], find distance to next strictly larger element to the right. If none, 0. EXAMPLE: [1, 0, 3, 2] - [2, 1, 0, 0] REQUIREMENT: O(n). MONOTONIC DECREASING STACK (right-to-left): EQUIVALENT LEFT-TO-RIGHT VERSION: COMPLEXITY: O(n) — each index pushed/

    12 questions
    All 12 Agoda questionsHints, answers & walkthroughs

    GGOOTTHHAAMMLLOOOOPP

    GGOOTTHHAAMMLLOOOOPP

    GOTHAMLOOP (Gotham Loop)

    Real interview questions from 181 companies, updated daily.

    • Companies
    • How it works
    • Pricing
    • Sign in
    • Get lifetime access · $329

    © 2026 Gotham Loop

    Terms of Service