Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2023. Number of Pairs of Strings With Concatenation Equal to Target
Count the ordered pairs (i, j), i ≠ j, of digit-strings from nums whose concatenation equals the given target. Key idea: consider every split of target into a prefix and suffix and use string frequency counts to sum matching pairs (taking care when both parts are identical).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.