Question

What is the time complexity of finding the length of a string in modern languages like Java and C#?

A O(n)
B O(n²)
C O(log n)
D O(1)
E O(n log n)
Practice Next

Hey! Ask a query