摘要: 放到我自己的服务器上了。 网 scale.html 樱花 sakura.html 时钟 meitu.html 阅读全文
posted @ 2019-10-31 10:59 世界を変える御宅族 阅读(2211) 评论(11) 推荐(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 世界を変える御宅族 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 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 世界を変える御宅族 阅读(125) 评论(0) 推荐(0) 编辑
摘要: CONTROL FLOW Primitive Types Nil 最简单的类型就是Nil,它只有一个值,意味数值不存在。 是否还记得String#index 。它返回一个nil值如果子字符串不存在于检索的字符串。它没有index,所以index位置不存在。 Bool bool类型只有两个可能的值fa 阅读全文
posted @ 2021-04-11 16:10 世界を変える御宅族 阅读(149) 评论(0) 推荐(0) 编辑
摘要: GETTING STARTED 为什么选择这门语言。没有为什么,觉得是门有意思的语言就跟了。 系统的话是centos8 通过crystal-lang 先安装,官网写的还是很清晰的在这不说了 install HELLO WORLD! puts "hello world!" 第一个程序是经典的hello 阅读全文
posted @ 2021-04-10 16:44 世界を変える御宅族 阅读(489) 评论(0) 推荐(1) 编辑
摘要: 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 世界を変える御宅族 阅读(3703) 评论(0) 推荐(0) 编辑
摘要: 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 世界を変える御宅族 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 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 世界を変える御宅族 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 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 世界を変える御宅族 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 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 世界を変える御宅族 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #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 世界を変える御宅族 阅读(156) 评论(0) 推荐(0) 编辑