kehkelunga
BAN USER
Questions (3)
Comments (4)
Reputation 40
- 1of 1 vote
AnswersGiven a collection of numbers, print all possible permutations.
- kehkelunga in India
Then,told me the code is printing redundant combination.Make change so that one combination is printed only once
1,1,2
[1,1,2], [1,2,1], and [2,1,1].| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
@petkom,I cant understand how its working .Can you please explain more about the recurrence?
- kehkelunga November 10, 2012Comment hidden because of low score. Click to expand.
0
of 0 vote
Is it a general tree or the binary tree?
What is the the structure of the tree?If the extra pointer is there or not?
Please clarify.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Sorry,it is repeated substring which is consecutive.Question has been edited.
abcabc is repeated consecutively while abcdabc doesnot have repeated substring which is consecutive.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
@remlostine
- kehkelunga November 13, 2012Can you please explain a bit?
I tried your code for{01,001}
its giving me 4 as answer but it should be 2 only.