蓝桥杯算法提高VIP-五次方数 Java 摘要:```java public class Main { public static void main(String[] args) { for(long i=10;i=10&&i=100&&…… 文章列表 2020年03月23日 0 点赞 0 评论 464 浏览 评分:0.0
如何高效的的统计数字中二进制中的1的个数 摘要:### 如何高效的的统计数字中二进制中的1的个数 直接进行位移是不好的,比较浪费时间,在严格环境中会超时。一种改进的思路是在循环中判断**n = n&(n-1)**可以减少时间 一个数字5 …… 文章列表 2020年04月01日 0 点赞 0 评论 860 浏览 评分:0.0
链表解答p38 摘要: #include using namespace std; typedef struct LNode{ //定义单链表结点类型 int data…… 文章列表 2020年04月01日 0 点赞 0 评论 645 浏览 评分:0.0
链表解答二 摘要: #include using namespace std; typedef struct LNode{ //定义单链表结点类型 int da…… 文章列表 2020年04月02日 0 点赞 0 评论 550 浏览 评分:0.0
二叉树基本实现 摘要: typedef struct BiTNode{ char data; struct BiTNode *lchild, *rchild; }BiTNode, *…… 文章列表 2020年04月03日 0 点赞 0 评论 949 浏览 评分:0.0
二叉排序树的基本实现 摘要: typedef struct BiTNode{ int data; struct BiTNode *lchild, *rchild; }BiTNode, *B…… 文章列表 2020年04月03日 0 点赞 0 评论 455 浏览 评分:0.0
快速排序(考研版) 摘要: #include using namespace std; //数组从1开始 int partition(int a[], int l, int h){ …… 文章列表 2020年04月04日 0 点赞 0 评论 952 浏览 评分:0.0
堆排序(考研版) 摘要: #include using namespace std; void adjustDown(int a[], int k, int n){ a[0…… 文章列表 2020年04月05日 0 点赞 0 评论 641 浏览 评分:0.0
求N里面的所有完数 摘要:```c #include void wanshu(int n){ int count=0,sum=0,a[100]={0}; for(int j=1;j…… 文章列表 2020年04月07日 0 点赞 0 评论 664 浏览 评分:0.0
求N里面的素数 摘要:```c #include int main(){ int n,i,j; scanf("%d",&n); for(i=2;i…… 文章列表 2020年04月07日 0 点赞 0 评论 554 浏览 评分:0.0