自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(97)
  • 收藏
  • 关注

原创 6.S081 Lab util: Unix utilities

primes(moderate)/(hard)Write a concurrent version of prime sieve using pipes. This idea is due to Doug McIlroy, inventor of Unix pipes. The picture halfway downthis pageand the surrounding text explain how to do it. Your solution should be in the file...

2021-12-03 00:51:30 277 1

原创 Ruby on Rails 入门学习

Rails是什么?一个快速搭建网页的框架,包含前后端和数据库,设计的思想是MVC。可以快速搭建起网页。Getting Started with Rails — Ruby on Rails Guides

2021-11-28 18:15:23 808

原创 ERROR: While executing gem ... (Gem::FilePermissionError)

环境:MAC。在Rails的官方文档中,进行到这一步可能会报错 gem install railsERROR: While executing gem ... (Gem::FilePermissionError)即使使用sudo强行安装上了,下一步也会报错。rails new blog`auth_data=': couldn't set additional authenticated data解决方法:​​​​​​MacOS 下安装 Ruby – ????

2021-11-21 22:39:03 905

原创 Abaqus踩坑

版本:6.13-1错误提示:The executable standard.exe aborted with system error code 1073741819.解决方法:使用everything搜索,把文件mkl_avx2.dll改名为mkl_avx2.dll.11.0.0.1参考:https://tieba.baidu.com/p/2868987526?pid=59560083636&cid=112176071926&red_tag=3443369354#54239..

2020-05-30 21:02:57 2328

转载 MySQL重置root密码

http://yshblog.com/blog/195

2020-04-14 22:18:43 155

原创 腾讯3.28客户端面试一面面经

开始自我介绍,问项目,然后问基础知识,操作系统,网络,C++这些,最后两道编程题。冒泡排序的递归写法:自己开始写的双层for循环的写法,自己开始写的神奇方法把自己和面试官都搞懵逼了,后来发现自己写的代码其实是有问题的,并不是冒泡排序(相邻两个数,比较交换),只是每次保证i位置元素最小,类似选择排序?#include <iostream>using namesp...

2020-04-09 23:01:33 722

原创 阿里3.25笔试题

自己写的bullshit,第一题5%,第二题0%第一题原来写的代码:思路是首先对矩阵所有数求和,然后取平均值,接下来,找到每一列最接近平均值的数,使得起伏最小。只通过了5%。#include <iostream>#include <cstdio>#include<vector>#include<algorithm>usi...

2020-04-09 23:01:18 663

原创 git 上传提示 remote origin already exist 解决方法

git rm origin master然后再git addgit push -u

2020-04-06 11:02:05 367

原创 CS106L,QT踩坑

安装Qt的时候一定要把两个MinGW都安装上,不要偷懒(分别是precompile和compile-tools)不然可能会出现各种奇怪的错误心得:面向面经建立自己的知识目录。(只是建索引) 面向Google或知乎来完善自己的知识体系。(一定要深入,深入,有自己的见解)...

2020-03-31 21:45:27 1423

原创 Linux共享内存

共享内存是一种进程间的通信方式。shmget(); 创建共享内存,返回标识符shmat(); 把共享内存映射到进程的地址空间中shdt(); 断开与共享内存的连接,非删除shmctl(); 共享内存管理(删除,或改变状态)Linux操作共享内存相关命令ipcs 查看消息队列,共享内存和信号量ipcrm -m 32769 删除标识为32769的共享内存程...

2020-03-10 15:06:21 284

原创 总结-慕课网基础课程

目的:补充基础知识,增强自己在找实习时的竞争力时间:2020.1.1-2020.3.8收获:上课看视频,只是建立了一个框架,真正的自己理解,是要通过思考,做题消化,才是自己的东西。感想:自己实在是太懒了,本来很简单,很基础的课程竟然花了两个月才刷完,中间穿插了过年,论文,力扣,剑指Offer。计算机组成原理概述组成计算操作系统基础计算机网络概述+物理层...

2020-03-08 15:31:24 299 1

原创 计算机网络基础知识 - 应用层- 慕课网

1. 应用层相对于其他层,是面向用户的一层,应用层协议主要解决了什么问题?答:与应用程序接口并提供常见的网络应用服务。2. 请列举5个以上的应用层协议。答:FTP、HTTP、HTTPS、TELNET、DNS、DHCP3. 什么是域名?为什么需要域名?答:域名是一串用点分割的名字,表示网络上某一台计算机的名称。 因为想要记忆IP地址和端口是非常麻烦的,但是记英文就相对容易很多。...

2020-03-07 21:08:20 408

转载 为什么TCP协议需要三次握手?

主要是为了防止历史连接的初始化问题,同时同步初始序列号。将连接的主动权交给连接发起方。https://draveness.me/whys-the-design-tcp-three-way-handshake

2020-02-29 21:25:48 490

原创 计算机网络基础知识 - 传输层- 慕课网

1. 传输层主要工作在什么地方?答:应用层之下,网络层之上,提供端到端的通信。主要工作在终端设备。2. 传输层最重要的两个协议是什么?答:TCP协议和UDP协议。3. 端口是什么,端口有什么作用?端口在协议中—般占用几个字节?答:端口是标记不同的使用网络的进程,16位2个字节。4. UDP协议的中文全称是什么? UDP协议有什么特点?请分点说明。答:用户数据报协议...

2020-02-28 16:52:32 525

原创 OBS软件黑屏解决方法-Win10

设置-系统-显示-图形设置-浏览-找到obs应用程序-选择节能就好了!

2020-02-25 23:50:31 740

原创 计算机网络基础知识 - 网络层- 慕课网

1.什么是IP地址,IP地址有什么特征?IP地址和MAC地址有什么区别和联系?答:IP地址是网际协议地址,是标记互联网中计算机的标识。根据IPv4,IP地址有32位,一般采用分成4个8位的点分10进制记法。 IP地址是网络分配给主机的,是可以变化,不与设备绑定的;而MAC地址是唯一的,一般与设备绑定的地址。2.IP报文由IP头部和IP数据两个部分组成,IP头部一般占用几个字节?答...

2020-02-22 15:34:27 511

原创 计算机网络基础知识 - 概述-数据链路层-物理层 - 慕课网

1.计算机网络的七层模型从顶往下分别是什么?请按顺序列举出来。答:应用层、表示层、会话层、传输层、网络层、数据链路层、物理层。2.为什么TCP/IP四层模型会取代OSI七层模型被广泛使用?答:OSI模型的专家缺乏实践经验,模型设计不合理,功能在各层重复出现。TCP/IP模型更具实用性,在具体应用过程中方便实施。3.ARP协议、RARP协议属于计算机网络的哪个层次?答:...

2020-02-19 16:42:37 669

原创 操作系统基础知识 - 基础 - 慕课网

1最早的计算机是没有操作系统的,操作系统的诞生解决了什么问题?2. 什么是批处理操作系统,它有什么特点?3. 什么是分时操作系统,它有什么特点?4. 操作系统主要功能是什么?5. 操作系统实现了对计算机资源的抽象,这里面的计算机资源主要包括什么?6. 操作系统提供了用户与计算机之间的接口,使得用户可以通过操作系统操作计算机,这个接口主要有几种形式?7. 什么是并行?...

2020-02-08 19:08:33 744

原创 计算机组成原理基础知识 - 计算 - 慕课网

这章主要学了原码反码和补码的表示,还有运算,真是头疼。1. 除了十进制以外,这个世界上常见的还有什么进制?2. 二进制一般使用什么方法转换成十进制?3. 十进制—般使用什么方法转换成二进制?4. 计算机直接使用原码计算有什么缺点?5. 请计算12、124 、1023、-1 、-127的二进制原码。6. 计算机的补码解决了什么问题?7. 请计算12、124 ...

2020-01-14 21:13:40 505

原创 计算机组成原理基础知识 - 组成 - 慕课网

1. 计算机的总线就像是计算机的离速公路,你是否可以说出总线主要的功能和分类?答:功能,将计算机的各个部件连接在一起,一般用来连接CPU、存储器和IO设备。分类:片内总线、系统总线;数据总线、地址总线、控制总线。2. 什么是总线标准,为什么需要总线标准,现在有哪些常见的总线标准?答:总线标准是用来规范计算机与新设备的研究的。有了总线标准,不同的厂商就可以按照同样的...

2020-01-07 22:28:57 1200

原创 计算机组成原理基础知识 - 概述 - 慕课网

历史和结构习题1. 计算机的发展历史大概可以分为几个阶段?每个阶段的计算机分别有什么特点?2. 你了解“摩尔定律”吗?“摩尔定律”对现代计算机产生了什么影响?3. 你了解冯诺依曼机吗?你是否可以大概描述冯诺依曼机的基本组成和工作原理?冯诺依曼机相对于之前的计算机有什么重要改进?4. 什么是冯诺依曼瓶颈?冯诺依曼瓶颈对现代计算机产生了什么影响?5. 你了解程序解释和程序翻...

2020-01-02 22:00:13 588

原创 2019.12.7PAT冬季考试第四题 - 7-4 Cartesian Tree (30分)

ACartesian treeis a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inorder traversal returns the original sequence. For example, given the sequence { 8...

2020-01-01 22:58:06 291

原创 2019.12.7PAT冬季考试第二题 - 7-3 Summit (25分)

7-3Summit(25分)Asummit(峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The ideal arrangement of one area is to invite those heads so...

2020-01-01 22:37:51 489

原创 2019.12.7PAT冬季考试第二题 - 7-2 Block Reversing (25分)

Given a singly linked listL. Let us consider everyKnodes as ablock(if there are less thanKnodes at the end of the list, the rest of the nodes are still considered as a block). Your job is to re...

2020-01-01 22:16:58 248

原创 2019.12.7PAT冬季考试第一题 - 7-1 Good in C (20分)

第一题7-1Good in C(20分)When your interviewer asks you to write "Hello World" using C, can you do as the following figure shows?Input Specification:Each input file contains one test case. For ...

2020-01-01 22:01:19 281

原创 总结与反思 - 12月7日冬季PAT甲级考试

第一次参加PAT甲级考试,地点在上海大学计算中心。首先要说下这个位置,地图上没有明显的标识,准考证上也没有明确的写,最后是靠自己问路问来的。上海大学计算中心:首先找到图书馆附近,然后找D楼,D楼的4楼就是计算中心啦。然后说下环境,机房是比较老的了,不过看上去编译环境还是比较齐全的,python, java, c都有,因为自己之前一直是用的VS2019,这次也打开了vs2010,然后就被坑...

2019-12-12 11:25:04 271

原创 PAT甲级简单题最后冲刺

A1001Calculatea+band output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Input Specification:Eac...

2019-12-07 00:03:16 390

原创 PAT甲级 - 1018 Public Bike Management (30分)

There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the...

2019-12-06 19:24:22 175

原创 PAT甲级 - 1021 Deepest Root (25分)

A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root...

2019-12-05 20:19:54 128

原创 PAT甲级 -1013 Battle Over Cities (25分) 求连通块的数量

It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we ne...

2019-12-04 21:26:54 161

原创 PAT甲级 - 1098 Insertion or Heap Sort (25 分) 堆排序,找规律

According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data...

2019-12-04 11:25:04 191

原创 PAT甲级 - 1107 Social Clusters (30 分) 并查集

When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. Asocial clusteris a set of people who have some of the...

2019-12-02 21:58:30 143

原创 PAT甲级1066 Root of AVL Tree (25 分)

An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing i...

2019-12-02 18:12:43 138

原创 PAT甲级 - 1099 Build A Binary Search Tree (30 分) 重建二叉搜索树

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The right s...

2019-12-01 22:08:46 138

原创 PAT - 1064 Complete Binary Search Tree (30 分) 完全二叉树和二叉搜索树

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The right s...

2019-12-01 21:32:08 157

原创 PAT甲级 - 1094 The Largest Generation (25 分) 树+DFS

A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Input...

2019-12-01 18:50:36 123

原创 PAT甲级 - 1090 Highest Price in Supply Chain (25 分) 树+DFS

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on t...

2019-12-01 18:12:56 128

原创 PAT甲级 - 1079 Total Sales of Supply Chain (25 分) 树+BFS

A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on t...

2019-11-30 21:51:08 159

原创 PAT甲级 - 1102 Invert a Binary Tree (25 分) 反转二叉树

The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard so fuck off.Now it's your tur...

2019-11-30 19:40:32 173 1

原创 PAT甲级- 1086 Tree Traversals Again (25 分) 已知先序和中序,求后序

An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the sta...

2019-11-30 18:09:44 146

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除