Back to problems

Select Least-Similar Candidates After Rarest Max-Character Proportion Filtering

Algorithm · Moveworks · Hard

Filtered Palindrome Concatenation Medium · Topics · Company Tags · Hints You are given a list of strings strs, a target string target, and a predefined similarity function xyz(s1: str, s2: str) -> float. Do the following in order: For each string s in strs, let p(s) be the minimum number of characters you must delete so that the remaining string becomes a palindrome. (This is len(s) – L, where L is the length of a longest palindromic subsequence of s.) Identify all strings…

Checking your access…