Suppose a customer’s NPS score reflects dissatisfaction with a recent experience. How would you craft an email to acknowledge their feedback and express a willingness to make things right?
Buildings with an Ocean View
Find all buildings that have an ocean view.
Input: heights = [1,2,3,4]
Output: [3]
Explanation: Since the ocean is to the right, only the rightmost tallest building (index 3) is not blocked by any others.
Valid Word Abbreviation
Determine if a string matches a valid word abbreviation.
Input: word = "apple", abbr = "a2e"
Output: FALSE
Explanation: The abbreviation claims exactly 2 characters are skipped between 'a' and 'e', but "ppl" is actually 3 characters long.
Palindrome After Deleting One Character
Determine if a string can be a palindrome after deleting at most one character.
Input: s = "abc"
Output: FALSE
Explanation: Deleting any single character leaves either "ab", "bc", or "ac", none of which result in a valid palindrome.