Skip to content

Instantly share code, notes, and snippets.

@sudo-panda
Created August 11, 2020 15:42
Show Gist options
  • Select an option

  • Save sudo-panda/bafc1fde906392352c3d96f5b607e4e0 to your computer and use it in GitHub Desktop.

Select an option

Save sudo-panda/bafc1fde906392352c3d96f5b607e4e0 to your computer and use it in GitHub Desktop.
C++ tips to get around TLE : vector with reserve
std::vector<int> v;
v.reserve(max);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment