内容为王
内容为王
全部文章
分类
C语言实践中的学习(6)
Java实践中学习到的知识(3)
总结(20)
未归档(1)
归档
标签
去牛客网
登录
/
注册
云青青兮欲雨,水澹澹兮生烟
算法练习,练习,再练习
全部文章
(共11篇)
JAVA刷题中碰到的问题
HashSet使用contains,而HashMap使用containsKey 2.String对Char[]的操作: String.charAt()--返回对应下表的值 String.toCharArray()--返回Char[]数组 3.Char[]转String: String.valueO...
2023-02-09
1
242
A multi-stage knowledge-guided evolutionary algorithm
论文-62-A multi-stage knowledge-guided evolutionary algorithm for large-scale sparse multi-objective optimization problems 1.论文总览 To address these issue...
2023-02-05
0
264
指针结构体数组qsort排序
注意原本的qsort中是指针,那么这里就是双指针了 int compare(const void **x,const void **y) { node **a=(node **)x; node **b=(node **)y; return (*b)->sum - (*a...
2021-03-02
0
587
C语言初始值问题
对于指针*struct(不仅仅是结构体),它没有初始值,所以要么分配空间,要么=NULL,不然它就会乱指向对于数组同样,初始化必须遍历使得等于0并且上面两者结合,比如struct node{struct node *next[26];}node;一定要全部将26个进行NULL初始化处理
2021-02-09
0
417
图--深度优先遍历
public depthsearch(Node node) { if(node==null) return null; Queue<Node> queue=new LinkedList<>(); HashSet<Node> hashset=HashSet<&...
2021-02-07
0
343
图宽度优先遍历
public DFS(Node node) { Queue<Node> queue=new Queue<>(); HashSet set=new HashSet<>(); queue.add(node); set.add(node...
2021-02-07
0
473
图--数据结构
只能用java实现 public class Node { public int val; public int in; public int out; public ArrayList<Node> nodes; public ArrayList<Edge> edges; ...
2021-02-07
0
376
在有父结点连接的新二叉树结构中,找一个结点的后序结点
node *findlastnode(node *p){node *q=p->right;if(q!=NULL){while(q->left!=NULL) q=q->left; return q;} node *par=p->parent;while(par-&g...
2021-02-05
0
343
判断是否是满二叉树
typedef struct infor{ int height; int number;}infor; infor *fullTree(node *p){ infor *IF=malloc(sizeof(infor));IF->height=0;IF->number=...
2021-02-04
0
351
对于非全局变量,想要通过参数在函数中改变对于的值
解决一个在Leetcode中刷题的疑惑,对于returnSize,要想改变其值只能用returnSize=10;对于数组,要用returnColumn,然后要申请空间,returnColumn=(int *)malloc(sizeof(int)100),而不是returnColumn=(int )....
2021-02-02
0
335
首页
上一页
1
2
下一页
末页