Header Ads Widget

Find the time complexity

Find the time complexity

Find the time complexity of following pseudo code:

func(int n)
    an_v=1
    for (lv=1; lv<=n; lv+=an_v)
        an_v++
        print(“*”)
Options
This problem has only one correct answer

Ans:-  2 

Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-

Post a Comment

0 Comments