02 2022 档案
摘要:题目 An image is represented by an m x n integer grid image where image[i][j] represents the pixel value of the image. You are also given three integers
阅读全文
摘要:题目 Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1's permuta
阅读全文
摘要:题目 Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: Th
阅读全文
摘要:题目 Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: head = [1,2,3,4,5], n = 2 Outp
阅读全文
摘要:题目 Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Ex
阅读全文
摘要:题目 Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example
阅读全文
摘要:题目 Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-pl
阅读全文
摘要:题目 Given a 1-indexed array of integers numbers that is already *sorted in non-decreasing order*, find two numbers such that they add up to a specific
阅读全文
摘要:题目 Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do thi
阅读全文
摘要:题目 Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1
阅读全文
摘要:题目 Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1
阅读全文
摘要:题目 Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be i
阅读全文
摘要:题目 You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the qualit
阅读全文
摘要:题目 Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exi
阅读全文
摘要:题目 Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street o
阅读全文
摘要:nsenter命令是一个可以在指定进程的命令空间下运行指定程序的命令。它位于util-linux包中。 用途 一个最典型的用途就是进入容器的网络命令空间。相当多的容器为了轻量级,是不包含较为基础的命令的,比如说ip address,ping,telnet,ss,tcpdump等等命令,这就给调试容器
阅读全文
摘要:代理是网络中的一项重要的功能,其功能就是代理网络用户去取得网络信息。形象的说:它是网络信息的中转站,对于客户端来说,代理扮演的是服务器的角色,接收请求报文,返回响应报文;对于web服务器来说,代理扮演的是客户端的角色,发送请求报文,接收响应报文。 代理具有多种类型,如果是根据网络用户划分的话,可以划
阅读全文
摘要:前言 在本地环境中开发代码时,经常需要将代码上传到服务器环境中,在环境中构建并调试程序。如果手动使用scp、ftp等文件传输程序将代码上传至环境,一次两次还好,反复多次操作则有些繁琐。 为了方便进行本地环境与服务器环境中代码的同步,JetBrains公司的IDE提供了一个名为Deployment的插
阅读全文
摘要:介绍 ironic-inspector是一个用于硬件自检的辅助型服务,它可以对被ironic组件管理的裸金属节点进行硬件自检,通过在裸金属节点上运行内存系统,发现裸金属节点的硬件信息,例如CPU数量和型号、内存容量、磁盘数量和型号、各种PCI设备等等,最终将这些信息记录于ironic组件的数据库中。
阅读全文
摘要:背景描述 为了适配新功能,裸金属服务的磁盘镜像中做了如下修改: dracut添加network, iscsi模块 grub添加rd.iscsi.firmware=1参数 删除网卡配置文件/etc/sysconfig/network-scripts/ifcfg-* 禁止network服务开机启动,防止
阅读全文
摘要:前言 使用现有centos的镜像,在海光机器上出现了无法运行的情况,grub引导后就只剩下光标一直在闪,无任何字符输出。这种情况大概率是因为Linux的内核无法运行在海光的CPU上所导致的。 已得知Linux内核在4.20版本后支持海光CPU,而在之前的版本中,则需要为内核打专门的patch,并编译
阅读全文
摘要:题目 Calculate a + b Input The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line. Output F
阅读全文
摘要:题目 Chenjb is the task author of the 71-st Zhejiang Provincial Collegiate Programming Contest. He created an NP-Hard problem on a graph with n vertices
阅读全文
摘要:简介 cowsay是一款有趣的ascii图案输出工具,通过它可以方便的输出一头说话的牛牛(马?): # cowsay hello frankming _________________ < hello frankming > \ ^__^ \ (oo)\_______ (__)\ )\/\ || w
阅读全文