当前位置:网站首页>学习日记8
学习日记8
2022-08-10 12:51:00 【51CTO】
今天上午复习了一下拓扑排序,并且做了一下拓扑排序的题,这道题,是关于比大小的,一般用拓扑排序是解决的是有向无环图,当然也可以检验出是否有环,按照题目上说,有三种输出,一种是组成了大小关系,即形成了环。还有自相矛盾,不能形成大小关系。最后一种是给出条件不能判断关系,由于输出的不同,所以也不能按常理来做这道拓扑排序题,这道题的大小数据应该输入一个,判断一个,一旦发现条件成立就输出,因为输出条件要包含,在哪一个输入下,满足的条件,这就相当于把拓扑排序最外面那层循环和输入条件的循环合并了,再就是控制条件比较多,需要加一些变量来控制输出。
今天下午做了一套测试题,这道题第一题很简单,只是循环就可以解决,但是没看下面的解释就做了,结果理解有些偏差,出了一点错。第二题,一看很简单,用个sort()感觉就可以解决,但是TLE了,我就用我知道的加快速度的所有方法,结果还是超时,最后有人提醒我排序必超时,认真听取他的意见,才做完这道题,至于后面的我就没做了,主要时间都花费在调试超时上了,大体一看,第三道像一道dp题,但是没读题,具体还不清楚,不过以前面两个题的经验,代码应该不会太长,可能有些思维上的难度。
晚上就写一下博客等等了。
明天的太阳正好,今日的我已被伤。
边栏推荐
- [Study Notes] Persistence of Redis
- 鸿蒙开发从hello world开始
- Efficient and Robust 2D-to-BEV Representation Learning via Geometry-guided Kernel Transformer Paper Notes
- Polygon zkEVM工具——PIL和CIRCOM
- MySQL面试题整理
- ArcMAP出现-15的问题无法访问[Provide your license server administrator with the following information:Err-15]
- Educational Codeforces Round 41 (Rated for Div. 2) E. Tufurama
- The basic components of Loudi plant cell laboratory construction
- YTU 2295: KMP模式匹配 一(串)
- [Advanced Digital IC Verification] Difference and focus analysis between SoC system verification and IP module verification
猜你喜欢

DNS欺骗-教程详解

Merge similar items in LeetCode simple questions

Nanodlp v2.2/v3.0 light curing circuit board, connection method of mechanical switch/photoelectric switch/proximity switch and system state level setting

M²BEV: Multi-Camera Joint 3D Detection and Segmentation with Unified Bird’s-Eye View Representation

BEVDet4D: Exploit Temporal Cues in Multi-camera 3D Object Detection 论文笔记

【目标检测】小脚本:提取训练集图片与标签并更新索引

Solution for "Certificate not valid for requested usage" after Digicert EV certificate signing

金山云要飘到哪里?

LeetCode·每日一题·640.求解方程·模拟构造

线代 | 秒杀方法与技巧
随机推荐
C#WPF 图片在显示时没有问题,但在运行时图片显示不出来的解决
R语言实战应用案例:论文篇(一)-特殊柱形图绘制
没有接班人,格力只剩“明珠精选”
I would like to ask the big guys, how to solve this error when cdc oracle initializes a 3 million table task running
Import other custom namespaces in C#
SenseTime self-developed robotic arm, the first product is an AI chess-playing robot: Guo Jingjing is also invited as an endorsement
Fragment-hide和show
Blast!ByteDance successfully landed, only because the interview questions of LeetCode algorithm were exhausted
BEVDet4D: Exploit Temporal Cues in Multi-camera 3D Object Detection 论文笔记
odps sql 不支持 unsupported feature CREATE TEMPORARY
G1和CMS的三色标记法及漏标问题
ArcMAP出现-15的问题无法访问[Provide your license server administrator with the following information:Err-15]
es6-promise对象详解
A can make large data clustering method of 2000 times faster, don't poke
Network Saboteur
shell:常用小工具(sort、uniq、tr、cut)
Basic knowledge of switches
A detailed explanation of implementation api embed
跨域的五种解决方案
专有云ABC Stack,真正的实力派!