Question: Have the function take the stx parameter being passed and return the smallest number you can get through the following reduction method. The method is:
Have the function
take the stx parameter being passed and return the smallest number you can get through the following reduction method. The method is: Only the letters a b and c will be given in str and you must take two difierent adjacent characters and replace it with the thilrd. For example ac can be replaced with b but aa cannot be replaced with anything. This method is done repeatedy untill the sting cannot be further reduced and the length of the resulting sting st be outputed.
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
