Salesforce Online Assessment OA Coding Questions and Analysis
Question Details
Absolutely bottled it. 1. Given an array of elements (n = 10^5), you can perform two operations on them: - Remove an element - Change it to any random integer Return the minimum no of removals such th
Full Details
Absolutely bottled it. 1. Given an array of elements (n = 10^5), you can perform two operations on them: - Remove an element - Change it to any random integer Return the minimum no of removals such that the largest element is at most twice the smallest element. 2. Given a list of strings, find the number of pairs (i,j) such that any permutation of the concatenated pairs is a palindrome. [Total length of all strings = 3 * 10^5]
About This Question
This is a reported interview question from a salesforce interview for a swe role during the oa round reported in 2026.
It covers the following topics: Arrays, Backtracking, Strings .