1.
किसी array में index से element को access करने की time complexity क्या है?
A
O(n)
B
O(log n)
C
O(1)
D
O(n²)
Answer and explanation
Correct Answer: C — O(1)
Array में सीधे index से access संभव है। मेमोरी एड्रेस = base + index × size से O(1) में मिलता है।
