← MakeMyTrip questions
CodingReported in a candidate post, Jun 2022

Generate Permutations of a Given String

Filed under MakeMyTrip

Write a function to generate all unique permutations of a given string using recursion. Handle cases where the input string may contain duplicate characters.

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

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