Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a program to generate all permutations of a hardcoded string.

Medium

Problem Statement

Create a program to generate all permutations of a hardcoded string.

Sample Input

String: "abc"

Sample Output

Permutations:
abc
acb
bac
bca
cba
cab

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; class StringPermutations { static void Main() { // Generate all permutations of the string } }
Log in or sign up to run or submit your code.Log inSign up
Input
String: "abc"
Expected Output
Permutations:
abc
acb
bac
bca
cba
cab