Question: Convertor ( 1 0 0 Marks ) You are given a string S containing two characters ' a ' and ' b ' . In
Convertor Marks
You are given a string containing two characters and In one operation, you can two nonequal indexes in the string and swap the characters. You have to tell the minimu operations needed to make the string nondecreasing.
We define a string as nondecreasing if holds for every based
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
