LeetCode Contest 389

100248. Existence of a Substring in a String and Its Reverse 给你一个字符串 s ,请你判断字符串 s 是否存在一个长度为 2 的子字符串,在其反转后的字符串中也出现。 如果存在这样的子字符串,返回 true;如果不存在,返回 false 。 测试样例: 输入:s = "leetcode" 输出:true 解释:子字符串 "ee" 的长度为…

Biweekly Contest 126

100262. Find the Sum of Encrypted Integers 给你一个整数数组 nums ,数组中的元素都是 正 整数。定义一个加密函数 encrypt ,encrypt(x) 将一个整数 x 中 每一个 数位都用 x 中的 最大 数位替换。比方说 encrypt(523) = 555 且 encrypt(213) = 333…