Accenture Associate Software Engineer Online Assessment Questions in 2024 to 2025 hiring | Off Campus
Accenture · Question · Posted Jun 2026
Q1. Identify Repeated Elements in a Constrained Array Problem Statement You are given an integer array nums of length n where: Every value lies in the range: [1, n] Each number appears either once or twice. Return all elements that appear exactly twice. Your solution must: Run in O(n) time. Use only constant extra space (excluding the output array). Example 1 Input nums = [4,3,2,7,8,2,3,1] Output [2,3] Example 2 Input nums = [1,1,2] Output [1] Example 3 Input nums = ...
The full answer & interview discussion are available to premium members.
Log in Create a free account