Thursday, August 16, 2018

Optimize code C/C++

If you are using linux: use getchar_unlocked() and putchar_unlocked() for taking fast single character I/O.
In Windows the equivalent is getchar() and puchar() repectively



Resources:
[1] fast input/output https://ideone.com/BrsDz4


Enteprise solutions:
[1] http://www.fastformat.org/

No comments:

Algorithms

  [1]  Introduction to Algorithms 3rd Edition  Cormen https://fun4yo.xyz/book/introduction-to-algorithms-3rd-edition/   [2]