Question: Quration 2 Max score 2 0 . 0 0 Minimire the cost You are given two strings 5 and R , each of sire N
Quration
Max score
Minimire the cost
You are given two strings and each of sire containing lowercase English leners.
You can do the following operations any number of times
Type : Select any two indicesandhom to I and swap S with III This operalion is free of cost
Type i Seled any inder thom O lo n Iand swap Syy with any lowercave English lener. This operation costs coin
Task
Defermine the minimum cost to maler string equal to
Note Obased indeaing is folluwed
Esample
Answiygotans
abotar'
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
