Filter interviews by
I was interviewed in May 2017.
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.
For each character in the input string, append it to the prefix and recursively generate permutations and combinations for the remaining characters.
Add the prefix to the result array.
Repeat the process for all characters i
Top trending discussions
posted on 7 Aug 2024
Software Engineer
12
salaries
| ₹5.1 L/yr - ₹16.8 L/yr |
Software Developer
4
salaries
| ₹4.2 L/yr - ₹10 L/yr |
UI/UX Designer
4
salaries
| ₹4.1 L/yr - ₹5.4 L/yr |
Product Manager
4
salaries
| ₹9 L/yr - ₹14 L/yr |
Android Developer
4
salaries
| ₹3 L/yr - ₹11 L/yr |
RedBus
Cogoport
Treebo Hotels
KrazyBee