Happiest Minds Technology OA | First Unique Element in Array & Reverse Array In-Place

Question · Posted Jun 2026

Problem 1 - IoT Device Event Synchronization Problem Statement You are monitoring a stream of incoming signal packet logs from a network of enterprise IoT devices. The tracking system records these event codes in an integer array deviceSignals of size N. Most device signals appear multiple times due to repeated transmissions. Your task is to identify and return the first signal that appears exactly once in the array. If every signal repeats, return -1. Constraints Constraint 1 ≤ N ≤ ...

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

Log in Create a free account