O(nlog(n))
A study-log Blog for Computer Science,algorithms and puzzles. Discussions are most welcome :-)
Labels
algorithm
(14)
backtracking
(2)
c
(2)
compiler
(2)
dbms
(3)
dp
(2)
puzzles
(8)
questions
(2)
recursion
(1)
sorting
(2)
tree
(1)
Friday, August 12, 2011
Permutations of a String
Problem : given a string as input, print its all the permutation
ex: input "abc"
output : abc, bca, cba, acb, cab, bac.
concept : use backtracking to traverse all the paths
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment