文章列表

筛选

冒泡排序----

摘要:#include <iostream>using namespace std;void maopao(int a[],int n){    for (int i = 1; i < n; ++i) { ……

算法学习资料推荐

摘要:> 今天这篇文章是针对刚学习算法的小白 希望小白会喜欢我推荐的这套课程 - Java 数据结构与算法【尚硅谷-韩顺平老师】 ![](/image_editor_upload/202203……

新手编程,原谅!!!!!!!

摘要:#include<bits/stdc++.h>using namespace std;int main(){ cout<<"  你在一片黑暗中醒来,突然,一束光照了进来。"; cout<<"你非常疑惑……

贪吃蛇(流畅版)

摘要:#include#include#include#include#define U 1 #define D 2 #define L 3 #define R 4 //蛇的状态,U:上 ;D:下;L……

猜拳(youVScomputer)

摘要:#include<iostream>#include<cstdlib>#include<ctime>using namespace std;int main(){ int c,p;//定义电脑(c),……

打怪鬼脸 做鬼脸

摘要:#include<bits/stdc++.h>#include<conio.h>#include<windows.h>using namespace std;double shanghai[20]={……

2048上下左右

摘要:#include <iostream>  #include <windows.h>  #include <ctime>  using namespace std;    int const ROW =……
精品文章

每日算法题:反转链表

摘要:描述(来自牛客):给定一个单链表的头结点pHead(该头节点是有值的,比如在下图,它的val是1),长度为n,反转该链表后,返回新链表的表头。数据范围:0≤n≤1000要求:空间复杂度 O(1) ,时……
精品文章

每日算法题:二分查找

摘要:描述(来自牛客):请实现无重复数字的升序数组的二分查找。给定一个 元素升序的、无重复数字的整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在……