leetcode anagrams string find

[Leetcode] 0709. 转换成小写字母

# [709. 转换成小写字母](https://leetcode.cn/problems/to-lower-case) 点击上方跳转至Leetcode ## 题目描述 给你一个字符串 s ,将该字符串中的大写字母转换成相同的小写字母,返回新的字符串。 示例 1: 输入:s = "Hello" 输出 ......
小写 字母 Leetcode 0709

[Leetcode] 0717. 1 比特与 2 比特字符

# [717. 1 比特与 2 比特字符](https://leetcode.cn/problems/1-bit-and-2-bit-characters) 点击上方,跳转至leetcode ## 题目描述 有两种特殊字符: 第一种字符可以用一比特 0 表示 第二种字符可以用两比特(10 或 11) ......
字符 Leetcode 0717

[Leetcode] 0706. 设计哈希映射

# [706. 设计哈希映射](https://leetcode.cn/problems/design-hashmap) 点击跳转至leetcode ## 题目描述 不使用任何内建的哈希表库设计一个哈希映射(HashMap)。 实现 MyHashMap 类: MyHashMap() 用空映射初始化对 ......
Leetcode 0706

find-my-way nodejs 快速的http 路由框架

find-my-way 基于了radix tree 开发的路由框架,支持路由参数,通配符,同时语言无关fastify 以及restify 都使用了路由框架,同时也受echo启发 说明 了解find-my-way 的使用以及内部机制对于学习fastify 是比较有用的,fastify 不少有意思的插件 ......
路由 find-my-way 框架 nodejs find

2023-06-20 hexo博客 运行报错:Cannot find module 'hexo' from 'D:\ablog' 提示要rm -rf node_modules && npm install --force

前言:把博客拉到到新电脑,运行hexo s报错如下: PS D:\ablog> hexo s ERROR Cannot find module 'hexo' from 'D:\ablog' ERROR Local hexo loading failed in D:\ablog ERROR Try r ......
hexo 39 node_modules amp install

Java中的String、StringBuilder和StringBuffer

### String #### String为什么不可变?有什么好处? ![image](https://img2023.cnblogs.com/blog/1950787/202306/1950787-20230620175305920-629279762.png) 在Java中的String源码中 ......
StringBuilder StringBuffer String Java

(Leetcode)将数组按照绝对值大小从大到小排序

【少说多做,少想多做】 ```java nums = IntStream.of(nums). boxed(). sorted((o1,o2)->Math.abs(o2)-Math.abs(o1)) .mapToInt(Integer::intValue).toArray(); ``` + IntSt ......
绝对值 数组 Leetcode 大小

[LeetCode] 2090. K Radius Subarray Averages

You are given a 0-indexed array nums of n integers, and an integer k. The k-radius average for a subarray of nums centered at some index i with the ra ......
LeetCode Averages Subarray Radius 2090

每日一题力扣 1262 https://leetcode.cn/problems/greatest-sum-divisible-by-three/

、 题解 这道题目核心就算是要知道如果x%3=2的话,应该要去拿%3=1的数字,这样子才能满足%3=0 贪心 sum不够%3的时候,就减去余数为1的或者余数为2的 需要注意 两个余数为1会变成余数为2的,所以可能减去2个余数为1 核心代码如下 public int maxSumDivThreeOth ......

Could not find method debug()

报错 Could not find method debug() for arguments [build_8ra893kw2s53lwt2nb3ue4acj$_run_closure1$_closure4$_closure7@5f343524] on BuildType$AgpDecorated_ ......
method Could debug find not

[LeetCode] 1262. Greatest Sum Divisible by Three

Given an integer array nums, return the maximum possible sum of elements of the array such that it is divisible by three. Example 1: Input: nums = [3, ......
Divisible LeetCode Greatest Three 1262

1.redis常见数据类型-字符串String、列表List、集合Set、Hash哈希、Zset有序集合

背景: 这里说的数据类型是value的数据类型,key的类型都是字符串。 命令不区分大小写,而key的值是区分大小写的 help @+数据类型 会出现命令提示 比如 help@string,help@list 常见命令: keys * 查看当前库所有key (匹配:keys *1) exists k ......
字符串 字符 常见 类型 数据

LeetCode 周赛 350(2023/06/18)01 背包变型题

> **本文已收录到 [AndroidFamily](https://github.com/pengxurui/AndroidFamily),技术和职场问题,请关注公众号 [彭旭锐] 和 [BaguTree Pro] 知识星球提问。** - 往期回顾:[LeetCode 单周赛第 348 场 · 数 ......
背包 LeetCode 2023 350 06

关于ASP.NET.CORE中的Failed to read parameter "string param" from the request body as JSON的处理

先上报错信息 Microsoft.AspNetCore.Http.BadHttpRequestException: Failed to read parameter "string param" from the request body as JSON. > System.Text.Json.Js ......
quot parameter request Failed string

std::string 拼接字符串

#include <iostream> #include <string> #include <sstream> using namespace std; int main() { string a = "123"; stringstream b; b << 123 << "456" << 789 ......
字符串 字符 string std

CF1778C - Flexible String 二进制枚举、状态压缩

参考splay佬的题解写个记录[https://zhuanlan.zhihu.com/p/602721281](原题解链接) 题意:给定两个字符串a, b,可以选择α里面的字符进行替换,但是替换的字符种类最多为k个。其中字符串α字符出现的种类不超过10种。求将替换后,两个字符的相同部分的数量。(相同 ......
二进制 Flexible 状态 String 1778C

C++面试八股文:std::string是如何实现的?

某日二师兄参加XXX科技公司的C++工程师开发岗位第18面: > 面试官:`std::string`用过吧? > > 二师兄:当然用过(废话,C++程序员就没有没用过`std::string`的)。 > > 面试官:`std::string("hello")+"world"`、`"hello"+st ......
八股文 八股 string std

Leetcode Hot 100 & 239. Sliding Window Maximum

参考资料: Python文档heapq部分 考点:子串 & [题干] 1 Input: nums = [1,3,-1,-3,5,3,6,7], k = 3 2 Output: [3,3,5,5,6,7] 3 Explanation: 4 Window position Max 5 6 [1 3 -1 ......
Leetcode Sliding Maximum Window Hot

mysql:报错Incorrect string value:’\xF0\x9F\x94\xA6\xF0\x9F…’

一,报错信息: 1,报错: Incorrect string value: '\xF0\x9F\x94\xA6\xF0\x9F...' for column 'content' at row 1 报错的原因: 字符串中包含了emoji表情: 如: 🔦💡🕯️ 💡🕯️🔦 2,运行环境: my ......
Incorrect xF0 x9F string mysql

解决find命令报错: paths must precede expression

解决find命令报错: paths must precede expression 在一天早上,想在服务器 /tmp 目录清除一些pdf文件,大概一万多个文件,在执行命令的时候 find /tmp -maxdepth 1 -mtime 30 -name *.pdf 出现了错误: find: path ......
expression 命令 precede paths find

Linux批量文件操作——基于find-xargs

### 前言 在项目初创阶段,经常会遇到各种文件操作,拷贝头文件,库,批量重命名等。文件结构一复杂,这就将是个无聊的工作。 ### 查找文件 `find`可以在目录结构中搜索文件,这是它在`man`里面的作用描述。那么怎么搜索呢?有多种方式,按文件时间,大小,按文件名,路径名,按文件类型,权限,按用 ......
find-xargs 文件 Linux xargs find

题解 CF1830C【Hyperregular Bracket Strings】

给定一个长度 $n$ 和 $k$ 个子区间 $\{[l1​,r1​],[l2​,r2​],…,[lk​,rk​]\}$。 问有多少个长度为 $n$ 的合法括号序列,使得每一个子区间也是合法的括号序列。 $n,k\leq 2^{18}$。 ......
题解 Hyperregular Bracket Strings 1830C

Day08-异常机制、包装类、String-StringBuffer-StringBuilder比较

异常机制 异常处理5个关键字:try、catch、finally、throw、throws 注意点 假设要捕获多个异常,异常类型从小到大 try监控区域,catch(想要捕获的异常类型!)捕获异常 finally处理善后工作,可以不要finally throw 主动抛出异常 throws在方法上捕获 ......

【LeetCode哈希表】前k个高频词,利用哈希表+vector进行排序操作

### 前k个高频词 https://leetcode.cn/problems/top-k-frequent-words/ 给定一个单词列表 words 和一个整数 k ,返回前 k 个出现次数最多的单词。 返回的答案应该按单词出现频率由高到低排序。如果不同的单词有相同出现频率, 按字典顺序 排序。 ......
LeetCode vector

Leetcode Hot 100 & 560. Subarray Sum Equals K

参考资料: 考点:子串 & [题干] 1 Input: nums = [1,1,1], k = 2 2 Output: 2 这道题说实话看得我一脸懵,第一时间想到的自然是双层循环遍历的一个$O(n^2)$的解法,也就是官方的解法一。但是使用这种解法会超时(Python语言是这样的,评论区有人提到了) ......
Leetcode Subarray Equals Hot 100

(find and grep)

前言 大家好,我是 god23bin。欢迎来到《一分钟学一个 Linux 命令》系列,每天只需一分钟,记住一个 Linux 命令不成问题。今天需要你花两分钟时间来学习下,因为今天要介绍的是两个常用的搜索命令:find 和 grep 命令。 find 什么是 find 命令? find 命令用于在指定 ......
find grep and

9. find

# 语法格式 find [查找范围] 寻找条件 常用参数: find -name # 匹配名称 find -user # 匹配所有者 find -group # 匹配所属组 find -exec {} \; # 把find命令得到的结果交给随后的命令进行进一步处理。{} 表示find命令搜索出的每一 ......
find

aapium报错 An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device in 21723ms.问题,已解决

现象: 1、appium日志存在报错信息: (1)中间:adb failed to start daemon * (2)结尾:POST /wd/hub/session 500 287ms 2、appium图形界面设置参数后,点击start session报错提示 An unknown server- ......

CString和string互转

CString转string CString strMfc = "test"; std::string strStr = strMfc.GetBuffer(0); string转CString CString strMfc; string strStr = "test"; strMfc = strS ......
CString string