C?

The Gateway to Computer Science Excellence

0 votes

0

Yes $C$ is correct. Please explain

I tried taking an input and calculating the return value but got $A$

I tried taking an input and calculating the return value but got $A$

0

for i=1 to 10k //i++

for j=n to 1// n=n/2

p++

for i=1 first full iteration for j increment p logn times// n ,n/2,n/4 ....1

so 10k * logn

so logn

for j=n to 1// n=n/2

p++

for i=1 first full iteration for j increment p logn times// n ,n/2,n/4 ....1

so 10k * logn

so logn

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.5k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.3k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.1k
- Non GATE 1.5k
- Others 1.5k
- Admissions 595
- Exam Queries 576
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 17

50,645 questions

56,616 answers

195,897 comments

102,364 users