← Salesforce questions

Ways to score N runs without consecutive boundaries

Filed under Salesforce

A player can score 1, 2, 4, or 6 runs per ball. Count the number of ways the player can reach a target score of N runs without hitting consecutive 4s.

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.