0

Write a program in java to print all possible combinatins of a 3 digit number..ex:123- 321,213,312...

plzz frnds solve it n help me to learn...plxzz

12th Feb 2018, 8:38 AM
A . Abdul Kalam
2 Respostas
+ 3
Have you tried to do it first? Post your code here so we can help. You can use Heap's Algorithm for that.
12th Feb 2018, 9:36 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
I don't know the Heap's algorithm and I do it by intuition. But I will read about this algorithm. https://code.sololearn.com/cB10p2yTZCAD/?ref=app
12th Feb 2018, 12:38 PM
Вадим Сухотин (Vadim Sukhotin)
Вадим Сухотин (Vadim Sukhotin) - avatar