会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Link 1
Link 2
Link 3
世界を変える御宅族
君は誰にとってのヒーローだったんですか
博客园
首页
新随笔
联系
订阅
管理
[置顶]
自己收集的好玩的JS特效(持续更新)
摘要: 放到我自己的服务器上了。 网 scale.html 樱花 sakura.html 时钟 meitu.html
阅读全文
posted @ 2019-10-31 10:59 世界を変える御宅族
阅读(2251)
评论(11)
推荐(2)
2021年5月2日
层次打印二叉树
摘要: #include<vector> #include<queue> #include<string> #include<binaryNode.hpp> #include<iostream> #include<sstream> template<typename T> class traverse {
阅读全文
posted @ 2021-05-02 09:00 世界を変える御宅族
阅读(92)
评论(0)
推荐(0)
2021年5月1日
BST完全实现
摘要: 1 #include <iostream> 2 #include<string> 3 #include<binaryNode.hpp> 4 using namespace std; 5 template<typename T> 6 class BST { 7 public: 8 BST() { sz
阅读全文
posted @ 2021-05-01 00:10 世界を変える御宅族
阅读(157)
评论(0)
推荐(0)
2021年4月11日
crystal-lang入门(二)
摘要: CONTROL FLOW Primitive Types Nil 最简单的类型就是Nil,它只有一个值,意味数值不存在。 是否还记得String#index 。它返回一个nil值如果子字符串不存在于检索的字符串。它没有index,所以index位置不存在。 Bool bool类型只有两个可能的值fa
阅读全文
posted @ 2021-04-11 16:10 世界を変える御宅族
阅读(199)
评论(0)
推荐(0)
2021年4月10日
crystal-lang入门(一)
摘要: GETTING STARTED 为什么选择这门语言。没有为什么,觉得是门有意思的语言就跟了。 系统的话是centos8 通过crystal-lang 先安装,官网写的还是很清晰的在这不说了 install HELLO WORLD! puts "hello world!" 第一个程序是经典的hello
阅读全文
posted @ 2021-04-10 16:44 世界を変える御宅族
阅读(661)
评论(0)
推荐(1)
2021年4月9日
int func(int n){ int i = 0,sum = 0; while(s < n) s += ++i; return i; }
摘要: int func(int n){ int i = 0,sum = 0; while(sum < n) sum += ++i; return i; } 求时间复杂度 A. O(logn) B. O(n^1/2) C. O(n) D. O(nlogn) ++i, i = 1,2,3,4,5,···,k。
阅读全文
posted @ 2021-04-09 19:00 世界を変える御宅族
阅读(3894)
评论(0)
推荐(0)
2020年10月31日
优先队列(大顶堆实现)
摘要: 1 #include <iostream> 2 #include<vector> 3 #include<binaryNode.hpp> 4 #include<queue> 5 //自己的头文件放最后防止被依赖 6 7 using namespace std; 8 template<class T>c
阅读全文
posted @ 2020-10-31 00:07 世界を変える御宅族
阅读(424)
评论(0)
推荐(0)
2020年10月24日
bm和kmp和bf
摘要: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<map> 5 #include<text.hpp> 6 #include<ctime> 7 8 using namespace std; 9 clock_t b
阅读全文
posted @ 2020-10-24 17:33 世界を変える御宅族
阅读(565)
评论(0)
推荐(0)
2020年10月17日
string
摘要: 1 #pragma once 2 #include <initializer_list> 3 struct String { 4 String(const char*s) { 5 c_str = new char[strlen(s)+1]; 6 while (*s) { 7 *(c_str+sz)
阅读全文
posted @ 2020-10-17 20:50 世界を変える御宅族
阅读(126)
评论(0)
推荐(0)
2020年10月16日
希尔排序(缩小增量排序)
摘要: 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 5 6 struct Sort { 7 8 inline void operator()(vector<int>&vec){ 9 for (int N = vec.siz
阅读全文
posted @ 2020-10-16 10:04 世界を変える御宅族
阅读(169)
评论(0)
推荐(0)
2020年10月15日
k-选取问题
摘要: #include <iostream> #include <vector> #include<cassert> #include <queue> using namespace std; auto func(vector<int> nums, size_t k) { assert(!nums.emp
阅读全文
posted @ 2020-10-15 15:16 世界を変える御宅族
阅读(157)
评论(0)
推荐(0)
下一页
公告