โ† Zoho questions

Print all Combinations and Permutations of a String

Filed under Zoho

Given a string of distinct characters, generate and return all non-empty combinations and permutations of its characters, ordered from length 1 up to the length of the string.

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 Zoho questions

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