lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  algorithms

探讨:数据结构和算法
摘要:【算法】平衡二叉搜索树之旋转(百度AI) 一、 平衡二叉搜索树的旋转 二、参考资料 1、 百度AI - https://www.baidu.com/s?word=平衡搜索旋转的原理&rsv_dl=DQA_PC_COPY 阅读全文
posted @ 2024-11-22 18:30 lnlidawei 阅读(13) 评论(0) 推荐(0)

摘要:[algorithms] 暴力算法(字符串匹配) 一、代码 1 #include <cstdio> 2 #include <cstdlib> 3 #include <cstring> 4 5 6 int match1(char *source, char *pattern) 7 { 8 int de 阅读全文
posted @ 2024-11-20 00:34 lnlidawei 阅读(28) 评论(0) 推荐(0)

摘要:[c/cpp]:递归算法:汉诺塔问题代码 一、代码 1 #include <iostream> 2 3 4 using namespace std; 5 6 7 // plate_numbers=n; 8 // from_stick=from; 9 // target_stick=to; 10 // 阅读全文
posted @ 2024-11-08 05:53 lnlidawei 阅读(54) 评论(0) 推荐(0)