Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

A string S is passed as the input. Two words W1 and W2 which are present in the string S are also passed as the input. The program must find the minimum distance D between W1 and W2 in S (in forward or reverse order) and print D as the output.

Sam the WatchDogs answered on April 26, 2022 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • question 2 // create a function that takes a two - digit number as an parameter and prints "ok" in // the console if the given string is greater than its reversed digit version.if not, the // function will print "not ok" // ○ test 1: reversecompare(72)

  • A string S is passed as the input. Two words W1 and W2 which are present in the string S are also passed as the input. The program must find the minimum distance D between W1 and W2 in S (in forward or reverse order) and print D as the output.

    0
    Popularity 3/10 Helpfulness 1/10 Language c
    Link to this answer
    Share Copy Link
    Contributed on Apr 26 2022
    Sam the WatchDogs
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.