Time and Space Complexity and Big O Notation | How to avoid TLE | Lecture 25 | Java and DSA Course

College Wallah
College Wallah
63.1 هزار بار بازدید - 2 سال پیش - Ever wondered, why one algorithm
Ever wondered, why one algorithm is better than the other ?
What is time and space complexity of an algorithm ?
These and many more questions will be answered here by Manvi mam. This lecture is going to be extremely important and crucial if you are preparing for any kind of interview.

Let us catch up in the class !

If you are facing any trouble accessing the assignment or lesson plan, please re-login to your account on PW Skills website and try.

Are you finding the classes helpful?
Stay tuned for more!

Access the notes and assignments for this class for free at :

If you are joining us late, to know more about PWSkills & plans :

Watch the Orientation Video: C++ DSA and Java DSA - Orientation Se...
Watch the Launch Video: @CollegeWallahbyPW THIS REVOLUTION WO...

TIME STAMPS:
00:00 - Introduction
01:12 - Recap
01:55 - Today's Checklist
02:32 - Concept of Time Complexity
28:05 - Types of time complexity and annotations
41:12 - Calculating the time complexity for traversing an array of length N
44:36 - Time complexity when traversing two individual arrays of length M and N respectively
46:22 - Time complexity for nested loops
59:09 - Time complexity for traversing the array while multiplying the increment value by 2
1:14:50 - Calculating the time complexity of a given loop (i=i*k)
1:20:55 - Summary of time complexity
1:25:00 - Concept of space complexity
1:31:54 - Space complexity of reversing an array
1:34:50 - Calculation of space complexity for an array of length N
1:35:12 - Space complexity for a 2-D array/matrix of N rows and M columns
1:37:40 - Summary

▶️ PW Skills Website - https://pwskills.com

▶️ PW Skills Instagram - Instagram: pwcollegewallah

▶️ PW Skills LinkedIn Channel -


▶️ PW Skills Telegram Channel- https://t.me/SkillsPW
2 سال پیش در تاریخ 1401/09/22 منتشر شده است.
63,104 بـار بازدید شده
... بیشتر