07 2020 档案

摘要:sudo vi /etc/systemd/system/network-online.target.wants/networking.service将里面的TimeoutStartSec=5min 修改为TimeoutStartSec=10sec 阅读全文 »
posted @ 2020-07-29 16:00 Smah 阅读(1032) 评论(0) 推荐(0) 编辑
摘要:给定一个整数矩阵,找出最长递增路径的长度。 对于每个单元格,你可以往上,下,左,右四个方向移动。 你不能在对角线方向上移动或移动到边界外(即不允许环绕)。 示例 1:输入: nums = [[9,9,4], [6,6,8], [2,1,1]] 输出: 4 解释: 最长递增路径为 [1, 2, 6, 阅读全文 »
posted @ 2020-07-26 23:09 Smah 阅读(219) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <stdlib.h> #define NULL 2 /* run this program using the console pauser or add your own getch, system("pause") or input loo 阅读全文 »
posted @ 2020-07-23 01:02 Smah 阅读(354) 评论(0) 推荐(0) 编辑
摘要:记录下阅读的资料: (总结待续) 1.https://blog.csdn.net/weixin_39640298/article/details/84503428 2.https://docs.microsoft.com/en-us/cpp/preprocessor/once?view=vs-201 阅读全文 »
posted @ 2020-07-23 00:26 Smah 阅读(214) 评论(0) 推荐(0) 编辑
摘要:After the sleep interval has passed, the thread is ready to run. If you specify 0 milliseconds, the thread will relinquish the remainder of its time s 阅读全文 »
posted @ 2020-07-22 19:46 Smah 阅读(1418) 评论(0) 推荐(0) 编辑
摘要:一、什么是内联函数 在C语言中,如果一些函数被频繁调用,不断地有函数入栈,即函数栈,会造成栈空间或栈内存的大量消耗。 为了解决这个问题,特别的引入了inline修饰符,表示为内联函数。 栈空间就是指放置程式的局部数据也就是函数内数据的内存空间,在系统下,栈空间是有限的,假如频繁大量的使用就会造成因栈 阅读全文 »
posted @ 2020-07-22 19:37 Smah 阅读(239) 评论(0) 推荐(0) 编辑
摘要:高位<==低位(例32<==0) 类型 符号位 指数位 尾数位 大小 float 1 8 23 32bit double 1 11 52 64bit 单精度例1: float b = 2.25; b的二进制表示:10.01 b的二进制科学计数法表示:1.001*2^1 符号位:0(1位) 指数位:1 阅读全文 »
posted @ 2020-07-22 17:44 Smah 阅读(492) 评论(0) 推荐(0) 编辑
摘要:打开:/etc/default/grub 搜索:#GRUB_GFXMODE=640x480 编辑:640x480改成你想要的分辨率,并取消前面的# 例如:GRUB_GFXMODE=1024x768 更新:sudo update-grub 阅读全文 »
posted @ 2020-07-20 14:04 Smah 阅读(448) 评论(0) 推荐(0) 编辑
摘要:实现 int sqrt(int x) 函数。 计算并返回 x 的平方根,其中 x 是非负整数。 由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。 示例 1:输入: 4,输出: 2 示例 2:输入: 8,输出: 2(说明: 8 的平方根是 2.82842..., 由于返回类型是整数,小数部 阅读全文 »
posted @ 2020-07-16 23:14 Smah 阅读(265) 评论(0) 推荐(0) 编辑
摘要:给你两个有序整数数组 nums1 和 nums2,请你将 nums2 合并到 nums1 中,使 nums1 成为一个有序数组。 说明: 初始化 nums1 和 nums2 的元素数量分别为 m 和 n 。你可以假设 nums1 有足够的空间(空间大小大于或等于 m + n)来保存 nums2 中的 阅读全文 »
posted @ 2020-07-16 22:30 Smah 阅读(303) 评论(0) 推荐(0) 编辑
摘要:个人理解: 首先要理解并发的概念,字面意思就是并行发生。当有大量事务需要处理的时候,就产生的并发,当只有一个处理器的core的时候,事实上同一个时刻只有一件事务可以处理,即便是超线程技术,同时也只能处理一件事务,当然cpu的频率已经非常高了,比如一个核心的主频是1GHz,也就意味着每秒钟开关1,07 阅读全文 »
posted @ 2020-07-15 23:49 Smah 阅读(737) 评论(0) 推荐(0) 编辑
摘要:给定一个正整数 n(1 ≤ n ≤ 30),输出外观数列的第 n 项。 注意:整数序列中的每一项将表示为一个字符串。 「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。前五项如下: 1. 12. 113. 214. 12115. 111221 一.暴力拆解:双百 思路: 阅读全文 »
posted @ 2020-07-14 21:55 Smah 阅读(201) 评论(0) 推荐(0) 编辑
摘要:首先是判空 testtable={} if next(testtable) ==nil then print("这个table是空的") end 插入table local table1={["name"]="aaaa",["value"]=1} local table3={["name"]="cc 阅读全文 »
posted @ 2020-07-14 16:20 Smah 阅读(1540) 评论(0) 推荐(0) 编辑
摘要:os.date ([format [, time]]) Returns a string or a table containing date and time, formatted according to the given string format. If the time argument 阅读全文 »
posted @ 2020-07-14 11:46 Smah 阅读(2594) 评论(0) 推荐(0) 编辑
摘要:给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。 说明:你的算法应该具有线性时间复杂度。 你可以不使用额外空间来实现吗? 示例 1: 输入: [2,2,1] 输出: 1 示例 2: 输入: [4,1,2,1,2] 输出: 4 1.暴力法:排序后, 阅读全文 »
posted @ 2020-07-13 23:59 Smah 阅读(227) 评论(0) 推荐(0) 编辑
摘要:心得: 1.普通人想要通过学习linux内核找工作几乎是一件不可能的事情,一般被能力认可,进入到相关kernel开发,基本在博士水平 2.学习驱动基本和内核关系不大。 3.泛读内核是为了了解操作系统,脑海里有一个印象,比如boot中充斥着大量安排内存中位置的代码,这些代码对大部分人根本没有任何帮助 阅读全文 »
posted @ 2020-07-12 00:04 Smah 阅读(719) 评论(0) 推荐(1) 编辑
摘要:! ! setup.s (C) 1991 Linus Torvalds ! ! setup.s is responsible for getting the system data from the BIOS, ! and putting them into the appropriate plac 阅读全文 »
posted @ 2020-07-11 18:23 Smah 阅读(517) 评论(0) 推荐(0) 编辑
摘要:/* * linux/boot/head.s * * (C) 1991 Linus Torvalds */ /* * head.s contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x 阅读全文 »
posted @ 2020-07-11 18:21 Smah 阅读(359) 评论(0) 推荐(0) 编辑
摘要:! ! SYS_SIZE is the number of clicks (16 bytes) to be loaded. ! 0x3000 is 0x30000 bytes = 196kB, more than enough for current ! versions of linux ! SY 阅读全文 »
posted @ 2020-07-11 18:19 Smah 阅读(520) 评论(0) 推荐(0) 编辑
摘要:2020已经过半,生活和工作应该算是没有起色,当然短短毕业一年,也应该对自己输出一些温柔,认为这些是常态,心想大部分人应该都会经历这个阶段。 简单总结一下,看看日后会不会觉得现在的一些想法是不是很可笑。 首先,工作的第一核心要义是能够给公司带来什么价值,如果你有很多技能,但给公司带来不了价值,也枉然 阅读全文 »
posted @ 2020-07-11 12:50 Smah 阅读(336) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示