← Salesforce questions

Find Element Repeated Thrice in Sorted Array

Filed under Salesforce

Given a sorted array where all elements appear twice except one element which appears three times, find the element that appears three times in O(log N) time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Salesforce questions

Collected from public candidate posts and coding forums. Updated Nov 2026.