Unverified Commit f450e4f1 authored by Trisolaris HD's avatar Trisolaris HD Committed by GitHub
Browse files

Update common-mistakes.md

为什么树状数组要四倍空间啊...难道不是线段树嘛?
parent 21b5bf9d
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@

-  无向图边表未开 2 倍。

-  树状数组未开4倍空间。
-  线段树未开 4 倍空间。

-  多组数据未清空数组。

@@ -34,9 +34,9 @@

- 存图下标从 0 开始输入节点未 -1。

-  Bfs不标记是否已过。
-  BFS 时不标记某个状态是否已访问过。

-  大小于号打错/打反。
-/小于号打错打反。

- 赋值运算符和 `==` 不分。
    - 示例:
@@ -59,8 +59,7 @@
      #include <iostream>
      #include <cstdio>
      using namespace std;
      int main()
      {
      int main() {
       ios::sync_with_stdio(false);
       //关闭IO后,cin/cout将使用独立缓冲区,而不是将输出同步至scanf/printf的缓冲区,从而减少IO耗时
       cout<<"a\n";