Files
leetcode-master/problems/leetcode的耗时统计.md
youngyangyang04 85e0e59a2e Update
2020-11-19 15:16:04 +08:00

9 lines
633 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

还有一些录友会很关心leetcode上的耗时统计。
这个是很不准确的,相同的代码多提交几次,大家就知道怎么回事了。
leetcode上的计时应该是以4ms为单位有的多提交几次多个4ms就多击败50%所以比较夸张如果程序运行是几百ms的级别可以看看leetcode上的耗时因为它的误差10几ms对最终影响不大。
**所以我的题解基本不会写击败百分之多少多少,没啥意义,时间复杂度分析清楚了就可以了**,至于回溯算法不用分析时间复杂度了,都是一样的爆搜,就看谁剪枝厉害了。