Because you have a constant number of variables, its space complexity is O(1)
More Related Contents:
- C++ Programming ( advantages of by ref & by val) query? / methods of editing struct other than byRef
- Why can’t variables be declared in a switch statement?
- Why have header files and .cpp files? [closed]
- C++11 rvalues and move semantics confusion (return statement)
- What’s the most efficient way to erase duplicates and sort a vector?
- Why do C and C++ compilers allow array lengths in function signatures when they’re never enforced?
- What is the usefulness of `enable_shared_from_this`?
- Why does left shift operation invoke Undefined Behaviour when the left side operand has negative value?
- What is meant with “const” at end of function declaration? [duplicate]
- C++ semantics of `static const` vs `const`
- Why don’t C++ compilers define operator== and operator!=?
- long long in C/C++
- What’s the right way to overload operator== for a class hierarchy?
- A warning – comparison between signed and unsigned integer expressions
- Order of evaluation of assignment statement in C++
- Inferring the call signature of a lambda or arbitrary callable for “make_function”
- How do I create a Window in different QT threads?
- Is the data in nested std::arrays guaranteed to be contiguous?
- c++ Vector, what happens whenever it expands/reallocate on stack?
- Variadic deduction guide not taken by g++, taken by clang++ – who is correct?
- CMake – remove a compile flag for a single translation unit
- C++ overloaded function as template argument
- Is-braces-constructible type trait
- Is there an equivalent to WinAPI’s MAX_PATH under linux/unix?
- constexpr const vs constexpr variables?
- Format specifiers for uint8_t, uint16_t, …?
- Do I have to bind a UDP socket in my client program to receive data? (I always get WSAEINVAL)
- Using a static library in Qt Creator
- Visual Studio 2013: CL.exe exited with code -1073741515
- “What happened to my SFINAE” redux: conditional template class members?