0

I've seen many people asking for complexity of their own algorithms but is it possible to see the time/space complexity of all the functions (e.g string.indexof etc) in C# ? and if possible we could see the algorithm they implement???

if its possible, where can we find??

2 Answers 2

1

Most built in functions are of what ever is the standard best case solutions to a problem. If you want any more information you may be able to find it on msdn.com. Otherwise you won't be able to see the microsoft code with out working there.

Sign up to request clarification or add additional context in comments.

1 Comment

i believe someone quoted the idea of reflection (why did he remove that :( )... that was a nice idea to look into MS code...
1

IIRC, the latest MSDN documentation includes method complexity for collection types.

2 Comments

Look in remarks section. msdn.microsoft.com/en-us/library/e4w08k17.aspx List<T>.IndexOf()
agreed, that's quite nice...but would have loved to see string.IndexOf(String).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.