Number Type Limits

Published by CppPythonDude in

Create a function that returns a vector that has three elements which are:

  1. The maximum value of an int type.
  2. The maximum value of a long long type (the biggest number).
  3. The maximum value of a short int type.

Examples

No examples because the solution is hardcoded, and always the same.

Notes

  • Try not to use tests section to see the solution.
  • When you are on the maximum number in each type, if you add 1 to it, the result becomes negative, for example if the maximum number of int is 100 (which it isn't) if you add 1 to it, it would become -101.
Watch a quick demo on how Edabit works.