How to write an example of O1 time complexity in C

1 Answer

0 votes
#include <stdio.h>

int main()
{
    // printed only once on the screen. 
    // the time complexity is constant: O(1)
    
    printf("C Programming");

    return 0;
}



/*
run:

C Programming

*/

 



answered Dec 12, 2024 by avibootz
...