Most Common Trigraph


  • 0
    Z

    Given a long string of ascii characters, find the most common trigraph

    For example, given

    abcdabcef

    the trigraphs are

    abc, bcd, cda, dab, abc, bce, cef

    The most common is abc


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.