YUNOVA · Python programming

Module 20: Interview DSA

Notes for offline study · 30 November 2026

Python me stack kaise banate hain

Key points

  • Stack में जो आख़िर में रखा जाता है वही सबसे पहले निकलता है।
  • Python में list से ही stack बन जाता है।
  • Undo जैसे काम इसी तरीक़े से चलते हैं।

Python me linked list

Key points

  • Linked list में हर node अपने साथ अगले node का पता रखता है।
  • इसमें index नहीं होता, इसलिए एक-एक करके आगे बढ़ना पड़ता है।
  • बीच में जोड़ना या हटाना list के मुक़ाबले आसान होता है।

Two Sum problem Python me solve karna

Key points

  • इसमें ऐसे दो number ढूँढ़ने हैं जिनका जोड़ तय number बने।
  • हर जोड़ी देखना आसान है पर धीमा है।
  • पहले देखे number dictionary में रखने पर यह एक ही चक्कर में हो जाता है।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.