摘要: ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220515235059133-571082718.png) ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220515235129302-1193106593.png) ![](https://i 阅读全文
posted @ 2022-05-16 00:12 越菜越自信 阅读(171) 评论(0) 推荐(0)
摘要: /************************************* 栈的链表实现 *************************************/ typedef int DataType; struct StackNode; struct StackNode { DataTy 阅读全文
posted @ 2022-05-14 09:11 越菜越自信 阅读(28) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220512233433230-1125018689.png) ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220512233512843-937216785.png) ![](https://i 阅读全文
posted @ 2022-05-12 23:59 越菜越自信 阅读(22) 评论(0) 推荐(0)
摘要: int checkSame(int** matrix, int sr, int sc, int maxr, int maxc) { // (1) int step = 0; while(1) { if(sr + step >= maxr) { break; // (2) } if(sc + step 阅读全文
posted @ 2022-05-12 00:10 越菜越自信 阅读(482) 评论(0) 推荐(0)
摘要: #位与 #位或 #右移 阅读全文
posted @ 2022-05-10 23:32 越菜越自信 阅读(21) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220509234923890-1778750096.png) ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220509234954157-18353116.png) ![](https://im 阅读全文
posted @ 2022-05-10 00:15 越菜越自信 阅读(14) 评论(0) 推荐(0)
摘要: ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220508213710292-725195434.png) ![](https://img2022.cnblogs.com/blog/2540508/202205/2540508-20220508213731585-1313073737.png) ![](https://i 阅读全文
posted @ 2022-05-08 21:44 越菜越自信 阅读(25) 评论(0) 推荐(0)
摘要: /******************** 哈希表 开放定址法 ********************/ #define maxn (1<<17) #define mask (maxn-1) #define DataType int #define Boolean int #define NULL 阅读全文
posted @ 2022-05-08 00:20 越菜越自信 阅读(38) 评论(0) 推荐(0)
摘要: #define HashValueType long long const int MAXH = (1 << 20); bool hashkey[MAXH]; // 1) HashValueType hashval[MAXH]; int getKey(HashValueType val) { int 阅读全文
posted @ 2022-05-08 00:04 越菜越自信 阅读(30) 评论(0) 推荐(0)
摘要: int func(int *iq, int size) { int cnt = 0; for(i = 0; i < size; ++i) { if(iq[i] > 163) { ++cnt; } } return cnt; } int *func(int *iq, int size, int IQM 阅读全文
posted @ 2022-05-07 09:43 越菜越自信 阅读(115) 评论(0) 推荐(0)