India’s Best Job Seekers and Training Platform Forums Algorithm Solutions Discussion Given an alphabet where we do not know the order of the …

  • Given an alphabet where we do not know the order of the …

  • Akash 

    Administrator
    at

    Given an alphabet where we do not know the order of the letters also do not know the number of letters.

    We are give an input list of tuples where each entry in the list gives an ordering between the 2 letters

    Determine the alphabet order.

    Ex-

    <A, B>

    <C, D>

    <C, E>

    <D, E>

    <A, C>

    <B, C>

    Order is A, B, C, D, E

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 21st September 2020. Attend one week free demo classes.Register Now

New Report

Close