What are time complexity and space complexity for an algorithm?
Hi Sampath, Finding out the time and space complexity for an algorithm is a subject in itself which is taught to the undergraduates of computer science background. Looks like you are from a non-computer science background; it depends on how in-depth you wish to understand about this topic and apply in your day-to-day software development activity. You can find huge resources on this topic on the web, varying from basics to advanced; otherwise if you have enough time and patience, I suggest you can refer Computer Algorithms by Horowitz & Sahani or Data Structures using C and C++ by Tenan Baum to understand the basic concepts and then move on to the advanced ones. Probably you can find some online resource on MIT opencourseware or even on Stanford’s free online courses. It doesn’t require all that great effort to learn this; along with logical & reasoning skills, a bit of mathematics(solving series and recurrence relations) is required. Hope this will guide you.