问题 给定一个字符串 s ,请计算这个字符串中有多少个回文子字符串。 具有不同开始位置或结束位置的子串,即使是由相同的字符组成,也会被视作不同的子串。 解决 //1、遍历统计(双指针),时间复杂度O(n^3) class Solution { public int countSubstrings(String s) { int low
/** * 16进制转string拼接 * @param array $bytes [description] * @return [type] [description] * @author Lerko * @dateTime 2018-01-25T10:18:31+0800 */ public function encodeHexString(array $bytes)