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

Programming Exercises

Create a component that generates all permutations of a hardcoded string and displays them.

Hard

Problem Statement

Create a component that generates all permutations of a hardcoded string and displays them.

Sample Input

String: 'abc'

Sample Output

Permutations: ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

import React from "react";
 
 const StringPermutations = () => {
  return (
  <div>
  {/* Display permutations */}
  </div>
  );
 };
 
 export default StringPermutations;