Facebook | Phone | Compare Linked Lists
Anonymous User
5003

Compare strings stored in two Linked Lists . Return true if the strings stored in both the lists are simillar.

List 1 : "He" -> " llo" -> "wor" -> "ld"
List 2 : "H" --> "e" --> "ll" --> "owo" --> "r" --> "ld"

Both the lists store "helloworld". Invterviewer was looking for more optimal algorithm.

Comments (19)