上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: c++ 版后面再补 package cn.kbug.dynamic; import java.util.Arrays; /** * KMP 算法本质上是对 搜索的字符串做优化,然后在匹配的时候,能做到非常省时间 * 如果搜索的串,都没有最大公连接相等子串,则此算法与暴力匹配无异 * @author 阅读全文
posted @ 2022-10-09 20:47 皮豪 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 很舒服的题目,不难。科班的知识就是舒服。 实验2:递归与分治 实验目的 熟悉递归算法的基本思想和基本步骤,熟练掌握递归公式的推导和定义方法,用递归算法解决实际问题。 实验要求 f 对本实验中的问题,设计出算法并编程实现。 实验内容: 注意:以下算法要求使用函数实现,都放到一个程序文件里面。即只使用使 阅读全文
posted @ 2022-10-09 15:48 皮豪 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 友元函数,友元类 使用友元,主要是易于直接访问数据,但友元本质是以破坏封装性为代价。 下例引用于: 《C++程序设计(第2版)》 友元声明位置由程序设计者决定,且不受类中public、private、protected权限控制符的影响。 友元关系是单向的,即类A是类B的友元,但B不是A的友元。 友元 阅读全文
posted @ 2022-09-25 15:10 皮豪 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 不论多少盘,都看成是两个盘在移动,只需要把上面的两个盘移动好就行。 public static void hanoiTower(int num,char a,char b ,char c) { if(num == 1) { System.out.println("第1个盘从"+a + " -> " 阅读全文
posted @ 2022-09-17 17:13 皮豪 阅读(34) 评论(0) 推荐(0) 编辑
摘要: msvc{ QMAKE_CFLAGS += /utf-8 QMAKE_CXXFLAGS += /utf-8 } 阅读全文
posted @ 2022-07-29 23:20 皮豪 阅读(91) 评论(0) 推荐(0) 编辑
摘要: # in project file cargo add rand extern crate rand; use rand::Rng; fn main() { let mut rng = rand::thread_rng(); // an unbiased integer over the entir 阅读全文
posted @ 2022-07-10 10:48 皮豪 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 这个会判断是否启动 Emacs daemon,如果没有启动他会自己启动 alias ec='emacsclient -t -a ""' alias sec='sudo emacsclient -t -a ""' 阅读全文
posted @ 2022-07-10 09:10 皮豪 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2022.cnblogs.com/blog/2146100/202207/2146100-20220709222608261-1124286324.png) 阅读全文
posted @ 2022-07-09 22:26 皮豪 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 《Rust 烹饪书》https://llever.com/rust-cookbook-zh/intro.zh.html 《Rust高级编程》https://learnku.com/docs/nomicon/2018 《RustApp入门》https://learnku.com/docs/rust-i 阅读全文
posted @ 2022-06-28 20:49 皮豪 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2022.cnblogs.com/blog/2146100/202206/2146100-20220625051952725-513067688.png) 阅读全文
posted @ 2022-06-25 05:19 皮豪 阅读(49) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页