>
Exams
>
Computer Science
>
Data Structures
>
a loop within a loop nested loop have time complex
Question:
A loop within a loop (nested loop) have time complexity ______.
CUET (UG) - 2023
CUET (UG)
Updated On:
Sep 23, 2024
n
n
2
n+1
n
3
Hide Solution
Verified By Collegedunia
The Correct Option is
B
Solution and Explanation
The correct option is (B) :n
2
.
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Data Structures
Describe the types of Data structure.
Bihar Board XII - 2025
Computer Science
Data Structures
View Solution
Differentiate between stack and queue data structure.
Bihar Board XII - 2025
Computer Science
Data Structures
View Solution
Explain stack.
Bihar Board XII - 2025
Computer Science
Data Structures
View Solution
What is array ?
Bihar Board XII - 2025
Computer Science
Data Structures
View Solution
Describe the use of linked list.
Bihar Board XII - 2025
Computer Science
Data Structures
View Solution
View More Questions
Questions Asked in CUET exam
If $ x + \frac{1}{x} = 3 $, what is the value of $ x^2 + \frac{1}{x^2} $?
CUET (UG) - 2025
Algebra
View Solution
A man can row 24 km downstream in 3 hours and the same distance upstream in 6 hours. What is the speed of the boat in still water?
CUET (UG) - 2025
Boat and Stream
View Solution
A and B together can complete a task in 10 days. A alone can finish it in 15 days. In how many days can B alone finish the work?
CUET (UG) - 2025
Time and Work
View Solution
What is the angle between the hour and minute hand at 3:30?
CUET (UG) - 2025
Clock and Calendar
View Solution
A, B, C and D are partners in a firm sharing profits in the ratio of 3:2:1:4. A retired and his share is acquired by B and C in the ratio 3:2. Calculate the new profit sharing ratio of partners.
CUET (UG) - 2025
Partnership
View Solution
View More Questions