Compare Concatenations of Two String Lists
Asked at Meta · Coding Questions · Difficulty: Easy
Two singly linked lists are each given as a list of node strings (a node's value may be empty). Concatenating the node strings head-to-tail forms strings `S1` and `S2`. Return whether `S1` and `S2` are exactly equal — without building either full concatenation (compare incrementally, in `O(total_chars)`).
Loading the problem…