摘要: This tuturial will explain how to use git through a proxy, for example if you are behind a firewall or on a private network. The examples are valid fo 阅读全文
posted @ 2021-10-20 11:55 ijpq 阅读(212) 评论(0) 推荐(0)
摘要: 0x01 program strategies IT IS WORTHWHILE TO MAP OUT A STRATEGY BEFORE STARTING TO CODE part A decomposition a good decomposition will allow you to iso 阅读全文
posted @ 2021-10-20 11:55 ijpq 阅读(29) 评论(0) 推荐(0)
摘要: 知乎 阅读全文
posted @ 2021-10-20 11:54 ijpq 阅读(42) 评论(0) 推荐(0)
摘要: 问题定义 在区间[lo, hi)查找元素e search语义约定: 如果成功,返回e的位置;如果失败,返回不大于e的最大元素的位置 只有版本C符合语义约定 版本A到版本B的改进是为了平衡向左和向右走时的查找次数,使得在最坏情况下查找次数得到改善,而最好情况下版本A还是最好的(不过最好情况一般不会遇到 阅读全文
posted @ 2021-10-20 11:54 ijpq 阅读(87) 评论(0) 推荐(0)
摘要: source code #include <stdio.h> #include <unordered_map> #include <string> #include <iostream> using namespace std; int main() { // printf("Hello World 阅读全文
posted @ 2021-10-20 11:53 ijpq 阅读(43) 评论(0) 推荐(0)
摘要: 起因 在看邓俊辉在学堂在线上的数据结构课的时候,发现前序/中序的二叉树迭代遍历讲的都非常好,偏偏不讲后序。看了书上的讲解后也觉得一头雾水,尤其是需要去找左侧最深可见叶子节点那里,我基本需要背诵代码的逻辑,非常痛苦。 所以开始在网上找有没有更好理解的逻辑去写这个后序遍历。 发现 我发现,大多数讲解后序 阅读全文
posted @ 2021-10-20 11:53 ijpq 阅读(189) 评论(0) 推荐(0)
摘要: const容易混乱的地方在于底层const和顶层const概念。以及const与新标准中constexpr的区分。 顶层const和底层const int *const p1 = &i; // 顶层 cosnt int ci = 42; // 顶层 const int *p2 = &ci; //底层 阅读全文
posted @ 2021-10-20 11:52 ijpq 阅读(42) 评论(0) 推荐(0)
摘要: 假设A为3x4,B为4x3 physical structure A[0,1,2,...,11];B[0,...,11] logical structure A[0,1,2,3] A[4,5,6,7] A[8,9,10,11] B[0,1,2] B[3,4,5] B[6,7,8] B[9,10,11 阅读全文
posted @ 2021-10-20 11:52 ijpq 阅读(88) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/4162456/forward-declaration-of-classes?rq=1 class Base: pass # subs = [Sub3,Sub1] # Note that this is NOT a list o 阅读全文
posted @ 2021-10-14 14:57 ijpq 阅读(585) 评论(0) 推荐(0)
摘要: % x%y语义上:如果x和y都是正整数,结果是x除以y的余数 这个运算结果的取值范围是[0, x-1]  但值得注意的是 // Program to illustrate the // working of the modulo operator #include <stdio.h> int m 阅读全文
posted @ 2021-10-14 08:53 ijpq 阅读(42) 评论(0) 推荐(0)