Print Permutations of elements of an array with no duplicates

preview_player
Показать описание
Given an array. Write code to print all permutations of elements of that array
-----------------------------------------

Join our 30-days online course to prepare for coding interviews of companies like Google, Amazon, Facebook, Microsoft, etc.

We have our office in Greater Noida (India) where we run courses for students to prepare them for placements in Top IT companies. For Placement Preparation and Industrial Training call us.

Call: +91-8377803450

Call us to conduct a workshop in your college campus.

Buy our books and prepare for coding interviews on your own.

For detailed discussions on Interview Questions visit:
Рекомендации по теме
Комментарии
Автор

Fantastic Code. Hats off to you. Very Simple and brief

alevelsphysicsallvariants
Автор

And finally i clearly understand permutation. Thank you very much sir

thangaduraiarumugam
Автор

Thanks, this helped me in my assignment.

rohailtaha
Автор

Thank you for the help sir, you really are helpful thank you

Dwika
Автор

beauyifully explained i watched some vedioes earlier which made me sad lol..

sunnyrawat
Автор

Hello. Out of curiosity - how hard would this be to achieve without using recursion? Eg. an iterative method.

mw
Автор

What is the last swap call (after printPermutation) needed?

gatomas
Автор

but I don't think this permutations are in lexicographical order
correct me if I'm wrong

hadiali
Автор

Can it find permutations if array has 5million no's in it??
Please reply I am new to coding

ENGCT_MohithB
Автор

What it will print if duplicates present?

yashgoswami
Автор

If duplicates present than is there any way to calculate total permutations using any direct formula?

yashgoswami
Автор

Nice video. But, holy shit, the accent!

JeanAlesiagain