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 2
Max score 20.00
Minimire the cost
You are given two strings 5 and R, each of sire N containing lowercase English leners.
You can do the following operations any number of times
Type 0: Select any two indices/and/hom 0 to n. I and swap S4 with 5 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 f coin
Task
Defermine the minimum cost to maler string 5 equal to R
Note Obased indeaing is folluwed
Esample
Answiygotans
-N=S
-S= abotar'
Quration 2 Max score 2 0 . 0 0 Minimire the cost

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!