文章列表

筛选

精品文章

每日算法题:二分查找

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

每日算法题:反转链表

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

2048上下左右

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

打怪鬼脸 做鬼脸

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

猜拳(youVScomputer)

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

贪吃蛇(流畅版)

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

贪吃蛇小游戏

摘要:#include <windows.h>   #include <stdlib.h>   #include <conio.h>   #include <time.h>   #include <……

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

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