
Asked in Travelyaari
Write a program to generate all possible permutations and combinations of a given string.

AnswerBot
1y
This program generates all possible permutations and combinations of a given string.
Use recursion to generate permutations and combinations.
Start with an empty result array and an empty prefix string....read more
Nishant Anand
5y
# IN python 3.6
#Function to print permutations of a string
# This function takes three parameters:
# 1. String
# 2. Starting index of the string
# 3. Ending index of the string.
def permute(a, l...read more
Help your peers!
Add answer anonymously...
Interview Questions Asked to System Engineer Trainee at Other Companies
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

