二分-时间复杂度n*logn 摘要:解题思路:注意事项:参考代码:"""暴力做法:使用index查找元素 但是每次要进行排序 时间复杂度 n*n*logn正确做法:使用二分查找 在for之前排序一次 时间复杂度 n*logn二分思路:由…… 题解列表 2023年01月08日 0 点赞 0 评论 152 浏览 评分:0.0
编写题解 1390: 大神老白 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> #include <stdlib.h> int main() { int a, …… 题解列表 2023年01月08日 0 点赞 0 评论 159 浏览 评分:0.0
数据结构-字符串插入(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char str1[127], str2[127]; int n; scanf("…… 题解列表 2023年01月08日 0 点赞 0 评论 151 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int change(int arr[][3]) { for…… 题解列表 2023年01月08日 0 点赞 0 评论 161 浏览 评分:0.0
编写题解 1391: 震宇大神的杀毒软件 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void sort(int *a, int n); int main() { int arr[100] = {0}; …… 题解列表 2023年01月08日 0 点赞 0 评论 121 浏览 评分:0.0
编写题解 1771: [编程入门]链表之节点删除 C++ 第一次尝试用list容器 摘要:解题思路:注意事项:参考代码: #include<iostream> #include<list>struct Lnode{ int id; int score;};int main()…… 题解列表 2023年01月08日 0 点赞 0 评论 145 浏览 评分:0.0
通过递归解决各种问题 摘要:解题思路:找到递归思路注意事项:看清题目参考代码:#include<stdio.h>int qiua(int a){ if(a==1) return 1; return qiua(a-1)+a;}in…… 题解列表 2023年01月08日 0 点赞 0 评论 155 浏览 评分:0.0
判断三位数以内的水仙花数 摘要:解题思路:直接用水仙花数的定义翻译成c语言注意事项:注意灵活的思路。参考代码:#include <stdio.h>int main(){ int a,b,c,number; scanf("%d",&…… 题解列表 2023年01月08日 0 点赞 0 评论 168 浏览 评分:0.0
蓝桥杯算法提高VIP-文本加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[100]; get…… 题解列表 2023年01月08日 0 点赞 0 评论 151 浏览 评分:0.0