AI Coding · Meta · Medium
Requirements The input is a list of strings, such as ["programming", "am", "pro"]. Return a string from that list that contains at least one different list element as a substring. For the example, the answer is "programming", because it contains both "am" and "pro". The prompt already provides the test cases. The interviewer expects an initial brute-force method followed by 2–3 progressively faster approaches, with both time and space complexity stated for every approach.…
Checking your access…