String 2: Permutations of a given string | Must Do Coding Questions | GeeksForGeeks

Опубликовано: 29 Сентябрь 2024
на канале: Krishna Teaches
11,058
130

This video contains Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, …
from geeksforgeeks platform.

website link:
https://www.geeksforgeeks.org/must-do...

Topics covered in this video series are:
1.Arrays
   • 1.1 ARRAYS | Must Do Coding Questions  
2.String
   • 1.2 STRING | Must Do Coding Questions  
3.Linked List
4.Stack and Queue
5.Tree and BST
6.Heap
7.Recursion
8.Hashing
9.Graph
10.Greedy
11.Dynamic Programming
12.Divide and Conquer
13.Backtracking
14.Bit Magic

String:
2. Permutations of a given string:
Given a string S. The task is to print all permutations of a given string.

Example:
Input: 2
ABC
ABSG
Output:
ABC ACB BAC BCA CAB CBA 
ABGS ABSG AGBS AGSB ASBG ASGB BAGS BASG BGAS BGSA BSAG BSGA GABS GASB GBAS GBSA GSAB GSBA SABG SAGB SBAG SBGA SGAB SGBA

Code Link:
https://github.com/krishna-gavas/Comp...

Complete Playlist:
   • 1.1 ARRAYS | Must Do Coding Questions  

Intro Music :
   • Video