2021-07-03 LeetCode每日一题 链接:https://leetcode-cn.com/problems/sort-characters-by-frequency/ 标签:哈希表、字符串、桶排序、计数、排序、堆(优先队列) 题目 给定一个字符串,请将字符串里的字符按照出现的频率降序排列 ...
分类:
编程语言 时间:
2021-07-05 17:47:43
阅读次数:
0
GSON默认是开启html编码的, 方法注释是这么写的: By default, Gson escapes HTML characters such as < > etc. Use this option to configure Gson to pass-through HTML characte ...
分类:
其他好文 时间:
2021-07-02 16:09:53
阅读次数:
0
本文使用代码参考于https://www.cnblogs.com/leemang/p/3215499.html 一、全角字符 全角字符(Full-width characters)指一个字符占用两个标准字符位置,汉字字符和规定了全角的英文字符及国标GB2312-80中的图形符号和特殊字符都是全角字符 ...
分类:
其他好文 时间:
2021-06-28 20:02:30
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/longest-substring-with-at-least-k-repeating-characters public class LeetCode395 { public static void main(String ...
分类:
其他好文 时间:
2021-06-23 16:28:48
阅读次数:
0
You are given two strings s and p where p is a subsequence of s. You are also given a distinct 0-indexed integer array removable containing a subset o ...
分类:
其他好文 时间:
2021-06-15 18:05:39
阅读次数:
0
简介 使用滑动窗口 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/solution/hua-dong-chuang-kou-by-powcai/ code C++ class Solut ...
分类:
其他好文 时间:
2021-05-24 08:33:35
阅读次数:
0
You are given a 0-indexed string s that has lowercase English letters in its even indices and digits in its odd indices. There is a function shift(c, ...
分类:
其他好文 时间:
2021-05-04 15:31:41
阅读次数:
0
此博客链接: 连续字符 题目链接:https://leetcode-cn.com/problems/consecutive-characters/ 题目 给你一个字符串 s ,字符串的「能量」定义为:只包含一种字符的最长非空子字符串的长度。 请你返回字符串的能量。 示例 1: 输入:s = "lee ...
分类:
其他好文 时间:
2021-04-24 13:43:55
阅读次数:
0
题目: Given any string of N (≥) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l ...
分类:
其他好文 时间:
2021-04-08 13:31:19
阅读次数:
0
Given a string s containing only three types of characters: '(', ')' and '*', return true if s is valid. The following rules define a valid string: An ...
分类:
其他好文 时间:
2021-03-30 13:25:25
阅读次数:
0