how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)

Posted by Chantimorchi under C# on 7/28/2023 | Points: 10 | Views : 697 | Status : [Member] | Replies : 1
I have two strings like 1) JOHNSAN 2) JHONSAN
when comparing above two strings OH-HO (transposed)
how to check these condition if any adjacent letters are transposed between
two strings

one more exampls : MADHU 2) MAHDU

here DH transposed HD

please help on prority


Posted by: Chantimorchi on: 7/28/2023 [Member] Starter | Points: 25

if any adjacent letter transposed need to return true or false any body can help please

Chantimorchi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response