1、早上
做本周二叉树和并查集题目的最后两个,做出了一个。(3h)
#include <stdio.h>
main()
{char pre[30],post[30];
int cnt=1;
scanf("%s",pre);
scanf("%s",post);
for(int i=0;pre[i];i++)
for(int j=0;post[j];j++)
if(pre[i]==post[j]&&pre[i+1]==post[j-1]&&pre[i+1]&&post[j-1])
cnt*=2;
printf("%d",cnt);
}
2、下午
继续做最后一个题目,题目涉及了Floyd和tarjan知识,所以又看B站和大话数据结构学习相关知识,并写了本周的阅读报告。(2.5h)
今日总共学习时长5.5h。