Added Time Complexity and remove single comment into multi comment (#135)
* Added Time Complexity and remove single comment into multi comment * added new line at end of programpull/138/head
parent
4f8f068ecc
commit
616e931601
|
@ -55,11 +55,14 @@ void swap(char *a,char *b)
|
|||
*b=temp;
|
||||
//swapping done
|
||||
}
|
||||
// Example:
|
||||
//Input: abc
|
||||
//Output: 1(abc)
|
||||
// 2(acb)
|
||||
// 3(bac)
|
||||
// 4(bca)
|
||||
// 5(cba)
|
||||
// 6(cab)
|
||||
/* Example:
|
||||
Input: abc
|
||||
Output: 1(abc)
|
||||
2(acb)
|
||||
3(bac)
|
||||
4(bca)
|
||||
5(cba)
|
||||
6(cab)
|
||||
Time Complexity: O(n*n!)
|
||||
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue