Computer Science · Analysis of Algorithms
निम्नलिखित फ़ंक्शन पर विचार करें: int func(int n) { int s = 0; while (n > 1) { n = n / 2; s++; } return s; } n के संदर्भ में इस फ़ंक्शन की स्पर्शोन्मुख समय जटिलता (asymptotic time complexity) क्या है?
- 1O(n2)
- 2O(n)
- 3O(log n)✓
- 4O(n log n)
सही उत्तर देखें
O(log n)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Analysis of Algorithms?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Analysis of Algorithms