Search
⌘K

Compare Strings Formed by Linked Lists

Given two linked lists where each node contains a string, determine if the concatenated strings formed by the linked lists are equal. For example, if list A is 'he'->''->`ll'->'o'->'' and list B is 'hell'->'o', the result should be true.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid December, 2025

Meta

Junior

Mid January, 2025

Meta

Senior

Given 2 linked lists, check whether the strings formed by the values of the linked lists are the same. E.g. list A: 'he'->''->'ll'->'o'->'' list B: 'hell'->'o' Output: true

Mid January, 2025

Meta

Senior

Given 2 linked lists, check whether the strings formed by the values of the linked lists are the same. E.g. list A: 'he'->''->'ll'->'o'->'' list B: 'hell'->'o' Output: true

Comments

Your account is free and you can post anonymously if you choose.