ServiceNow SDE OA 2025 | Workflow Event Aggregator & Cloud Resource Allocation

ServiceNow · Question · Posted Jun 2026

Problem 1 - Workflow Event Aggregator Problem Statement You are given workflow event logs where each log is represented as: [workflow_id, event_type, timestamp] The event type can be: START END A workflow is considered stuck if it has a START event but never receives a corresponding END event. Return all stuck workflow IDs sorted in ascending order. Constraints Constraint 1 ≤ logs.length ≤ 105 Workflow IDs are unique strings Timestamps are non-negative integers Test Case Input Output logs = [ ...

The full answer & interview discussion are available to premium members.

Log in Create a free account