相关文章
双指针问题——求只包含两个元素的最长连续子序列(子数组)
一,题目描述 你正在探访一家农场,农场从左到右种植了一排果树。这些树用一个整数数组 fruits 表示,其中 fruits[i] 是第 i 棵树上的水果 种类 。 你想要尽可能多地收集水果。然而,农场的主人设定了一些严格的规矩,你必…
建站知识
2024/7/6 2:17:43
LeetCode906. Super Palindromes
文章目录 一、题目二、题解 一、题目
Let’s say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome.
Given two positive integers left and right represented as strings, return the number of super-palindr…
建站知识
2024/7/6 2:17:44
最新版docker-compose安装
Ubuntu/Kali 下载安装最新版 docker-compose
# FastGit加速
sudo curl -L "https://hub.fgit.cf/docker/compose/releases/download$(curl -L -i -s -o /dev/null -w "%{url_effective}\n" https://hub.fgit.cf/docker/compose/releases/latest | awk -F tag …
建站知识
2024/6/30 12:55:58
c++类程序设计题1
#include<iostream>
#include<string>
using namespace std;class cube{public ://设置长void setM(int m){M_l m;}int getl(){return M_l;}//设置宽void setr(int r){M_r r;}int get(){return M_r;}//设置高void setm(int m){M_m m;}int getm(){return M_m;}//…
建站知识
2024/7/1 20:16:55
JAVA面试部分——后端-线程前篇
3.1 线程和进程
在计算机科学中,进程和线程是操作系统管理资源的两种不同方式。 进程(Process):是程序在计算机上的一次执行活动。每个进程都有自己的内存空间,包括代码、数据和系统资源。一个进程可以包含多个线程。…
建站知识
2024/6/28 13:48:35
Spring Cloud + Vue前后端分离-第12章 通用权限设计
源代码在GitHub - 629y/course: Spring Cloud Vue前后端分离-在线课程
Spring Cloud Vue前后端分离-第12章 通用权限设计
这一章我们不依赖第三方框架,我会从权限相关表的设计,到权限的配置,到权限的拦截,带大家一步一步的做出…
建站知识
2024/7/5 12:55:34
Gateway反向代理配置
前言
一般而言,反向代理都是在Nginx中来实现的,其实Gateway也可以作为反向代理服务,不过一般不会这么做,只不过最近的项目,在通过Nginx反向代理之后,iPhone手机访问接口代理地址会异常,安卓手机…
建站知识
2024/7/2 17:04:11