Skip to content

akgaur12/DSA-Using-Python

Repository files navigation

🐍 DSA Using Python

This repository is a structured collection of Python programs to help understand Data Structures and Algorithms (DSA). It's organized by topics like basic math logic, hash maps, and recursion—ideal for beginners and intermediate programmers.

📁 Folder Structure

01_Basic_Maths_Logic
02_Hash_Map_Python
03_Patterns
04_Recursion
05_Searching
Algorithm Time (Best) Time (Avg) Time (Worst) Space Requirement
Linear Search O(1) O(n) O(n) O(1) None
Binary Search O(1) O(log n) O(log n) O(1) Sorted array
Interpolation Search O(1) O(log log n) O(n) O(1) Sorted and uniformly distributed array
06_Sorting
Algorithm Time (Best) Time (Avg) Time (Worst) Space Stable?
Bubble Sort O(n) O(n²) O(n²) O(1) Yes
Selection Sort O(n²) O(n²) O(n²) O(1) No
Insertion Sort O(n) O(n²) O(n²) O(1) Yes
Merge Sort O(n log n) O(n log n) O(n log n) O(n) Yes
Quick Sort O(n log n) O(n log n) O(n²) O(log n) No
Heap Sort O(n log n) O(n log n) O(n log n) O(1) No
Counting Sort O(n + k) O(n + k) O(n + k) O(k) Yes
Radix Sort O(nk) O(nk) O(nk) O(n + k) Yes
Bucket Sort O(n + k) O(n + k) O(n²) O(n + k) Yes
07_Array

Easy Level

Medium Level

Hard Level

08_Matrix

Easy Level

Medium Level

Hard Level

09_String

Easy

Medium

Hard

10_Bit_Manipulation

✅ Prerequisites

  • Python 3.x
  • Basic knowledge of Python syntax

🔔 Stay Tuned

More topics like Sorting, Searching, Linked Lists, Stacks, Queues, and Trees will be added soon.

Stay tuned for more! 🚀


Happy Coding! 💻✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages