leetle

Daily challenge for 2025-05-31

151. Find All Permutations of a String

Write a function solve that returns all possible permutations of a string with unique characters. The permutations can be returned in any order.

Example:
Input: "abc"
Output: ["abc","acb","bac","bca","cab","cba"]

Run this challenge interactively in Python or JavaScript when the app loads.