- 博客(9)
- 资源 (12)
- 问答 (1)
- 收藏
- 关注
原创 leetcode 5654. 盒子中小球的最大数量
你在一家生产小球的玩具厂工作,有 n 个小球,编号从 lowLimit 开始,到 highLimit 结束(包括 lowLimit 和 highLimit ,即 n == highLimit - lowLimit + 1)。另有无限数量的盒子,编号从 1 到 infinity 。你的工作是将每个小球放入盒子中,其中盒子的编号应当等于小球编号上每位数字的和。例如,编号 321 的小球应当放入编号 3 + 2 + 1 = 6 的盒子,而编号 10 的小球应当放入编号 1 + 0 = 1 的盒子。给你两个整数
2021-01-31 18:25:48 328
转载 leetcode 1114. 按序打印
我们提供了一个类:public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third"); }}三个不同的线程将会共用一个 Foo 实例。线程 A 将会调用 first() 方法线程 B 将会调用 second() 方法线程 C 将会调用 third() 方法请设计修改程序,以确
2021-01-30 22:46:00 217
原创 leetcode 724. 寻找数组的中心索引
给定一个整数类型的数组 nums,请编写一个能够返回数组 “中心索引” 的方法。我们是这样定义数组 中心索引 的:数组中心索引的左侧所有元素相加的和等于右侧所有元素相加的和。如果数组不存在中心索引,那么我们应该返回 -1。如果数组有多个中心索引,那么我们应该返回最靠近左边的那一个。示例 1:输入:nums = [1, 7, 3, 6, 5, 6]输出:3解释:索引 3 (nums[3] = 6) 的左侧数之和 (1 + 7 + 3 = 11),与右侧数之和 (5 + 6 = 11) 相等。
2021-01-29 09:31:57 198
转载 ARM Parameters in general-purpose registers
转载自:https://developer.arm.com/documentation/den0024/a/The-ABI-for-ARM-64-bit-Architecture/Register-use-in-the-AArch64-Procedure-Call-Standard/Parameters-in-general-purpose-registersFor the purposes of function calls, the general-purpose registers are div
2021-01-25 10:49:11 351
原创 leetcode 5661. 替换隐藏数字得到的最晚时间
给你一个字符串 time ,格式为 hh:mm(小时:分钟),其中某几位数字被隐藏(用 ? 表示)。有效的时间为 00:00 到 23:59 之间的所有时间,包括 00:00 和 23:59 。替换 time 中隐藏的数字,返回你可以得到的最晚有效时间。示例 1:输入:time = "2?:?0"输出:"23:50"解释:以数字 '2' 开头的最晚一小时是 23 ,以 '0' 结尾的最晚一分钟是 50 。示例 2:输入:time = "0?:3?"输出:"09:39"示例 3:输入
2021-01-24 17:16:35 302
原创 leetcode 989. 数组形式的整数加法
对于非负整数 X 而言,X 的数组形式是每位数字按从左到右的顺序形成的数组。例如,如果 X = 1231,那么其数组形式为 [1,2,3,1]。给定非负整数 X 的数组形式 A,返回整数 X+K 的数组形式。示例 1:输入:A = [1,2,0,0], K = 34输出:[1,2,3,4]解释:1200 + 34 = 1234示例 2:输入:A = [2,7,4], K = 181输出:[4,5,5]解释:274 + 181 = 455示例 3:输入:A = [2,1,5], K
2021-01-22 18:10:42 163
原创 leetcode 1018. 可被 5 整除的二进制前缀
给定由若干 0 和 1 组成的数组 A。我们定义 N_i:从 A[0] 到 A[i] 的第 i 个子数组被解释为一个二进制数(从最高有效位到最低有效位)。返回布尔值列表 answer,只有当 N_i 可以被 5 整除时,答案 answer[i] 为 true,否则为 false。示例 1:输入:[0,1,1]输出:[true,false,false]解释:输入数字为 0, 01, 011;也就是十进制中的 0, 1, 3 。只有第一个数可以被 5 整除,因此 answer[0] 为真。示例
2021-01-15 21:11:38 196
原创 Wireshark设置显示报文的时间
Wireshark默认情况下显示的时间是秒数,在分析交互报文的时候比较麻烦,可以通过如下的设置去显示咱们的常规习惯看的时间格式:试图 ------> 时间显示格式 -----> 日期和时间(1970-01-01 01:02:03.123456)下图是操作的截图是设置显示时间格式的图:...
2021-01-14 16:00:01 13500 1
转载 COAP协议全面分析
COAP协议全面分析转载自:https://blog.csdn.net/robert_tina/article/details/78864345##HTTP与COAP 请求与响应示例###HTTP请求(文本格式)POST https://getman.cn/echo HTTP/1.1User-Agent: FiddlerHost: getman.cnContent-Length: 9{temp:22}###HTTP响应(文本格式)HTTP/1.1 200 OKServer: NWS
2021-01-13 09:58:49 1189
CoAP_rfc7252.pdf
2020-12-04
openocd-2020-12-23.pdf
2020-11-24
_install.tar.gz
2020-07-08
busybox-1.31.0.tar.bz2
2020-07-08
Real-Time Embedded Multithreading--Using ThreadX.7z
2019-08-20
简明 Python 教程_cn_en
2018-09-04
Inside the C++ Object Model_english&chinese;
2018-07-27
See mips run
2018-03-17
nand操作时page_size = 2048;
2014-11-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人