time complexity



Consider this...

int h = n;
int i;

while ( h > 0 )
{
for(i=0;i<h;i++)
{
printf("%d",i);
}
h =/ 2;
}

What should be the complexity of this peice of code...

Regards,
Gaurav

.



Relevant Pages

  • Re: time complexity
    ... > int h = n; ... The same complexity as an easy piece of homework. ...
    (comp.theory)
  • Re: Working with incoming calls
    ... "Grant Schenck" wrote: ... they can be with regards to operations and call states. ... dwNeededSize 56 unsigned long int ... As you can see both dwCallFeatures and dwCallFeatures2 are 0. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Malloc code
    ... Best regards ... I will have to just be carefull to not allocate more that 1.5 KB at any ... also said that for your compiler, int is 8 bits. ... declaration of malloc from your compiler's malloc.h. ...
    (microsoft.public.vc.language)
  • Re: help needed with filnames as command line arguments
    ... Tested on Bloodshed gcc and Cygwins gcc also in case you're ... 003 int printargstuff(int aa, char *bb); ... Regards ...
    (comp.lang.c)
  • Re: unresolved external symbol
    ... Regards, ... > using namespace K1; ... > int APIENTRY _tWinMain(HINSTANCE hInstance, ... >>> a member of the my namespace. ...
    (microsoft.public.dotnet.languages.vc)