← Salesforce questions
CodingIncreasing

Three Coding Questions: Pairs, Primes, and Cyclic Subsequence

Filed under Salesforce

Solve three separate problems: 1) Count the number of integer pairs in an array with a given sum. 2) Count the number of substrings that form prime numbers less than 10^6. 3) Find the shortest cyclic…

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.