Skip to content

Instantly share code, notes, and snippets.

@ifkas
Created October 13, 2020 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifkas/5fc1389ad7bc66c4b874f0a6d7f237e6 to your computer and use it in GitHub Desktop.
Save ifkas/5fc1389ad7bc66c4b874f0a6d7f237e6 to your computer and use it in GitHub Desktop.
Final result - exercise 2
a = "xyaabbbccccdefww"
b = "xxxxyyyyabklmopq"
longest(a, b) -> "abcdefklmopqwxy"
a = "abcdefghijklmnopqrstuvwxyz"
longest(a, a) -> "abcdefghijklmnopqrstuvwxyz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment