Answer the question
In order to leave comments, you need to log in
What is the time complexity of this algorithm?
Probably a dumb question, but here is the code:
#include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
cout << a + b;
}
Answer the question
In order to leave comments, you need to log in
O(1)
If the notion of complexity applies to this code at all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question