文章列表
delete the repeated number in the chain number array
摘要:```c
//delete the repeated number in the chain number array
#include
#include
typedef int Elem……
删除链表中在[x,y]中的元素
摘要:```c
#include
void fun(SqList*L,ElemType x,ElemType y)
{
SqList *p1,*p2;
int temp;
……
最大子序列和的4种算法
摘要:题目:给定N个整数的序列{A1,A2,A3...,An},求函数f(i,j)=max(0,sum(num[i:j]))的最大值
算法1:
暴力解法
```c
int sum(int num[]……
力扣周赛——可互换矩形的组数
摘要:用一个下标从 0 开始的二维整数数组 rectangles 来表示 n 个矩形,其中 rectangles[i] = [widthi, heighti] 表示第 i 个矩形的宽度和高度。如果两个矩形 ……
力扣周赛——反转单词前缀
摘要:给你一个下标从 0 开始的字符串 word 和一个字符 ch 。找出 ch 第一次出现的下标 i ,反转 word 中从下标 0 开始、直到下标 i 结束(含下标 i )的那段字符。如果 word 中……
【1482】蓝桥杯算法提高VIP_Pascal三角_(C++代码)_(自己写的版本)_(二维数组)
摘要:#include <iostream>
#include <iomanip>
using namespace std;
//第一列全1
//右斜边全1
//第三行代表着第n行 其为第n……
[编程入门]利润计算-使用函数来处理利润(C语言)
摘要:利润(用 I 表示)提成分为6个阶段:
① 当 I < 100000时,提成占比为0.1;
②当 100000 < I ……