Data-Structures-using-Python
Data-Structures-using-Python copied to clipboard
This is my repository for Data Structures using Python
Implemented Binary Indexed Tree (Fenwick Tree).
used the fastest approach to solve this problem
Add two codes - - Subarray with given xor program - middle of linkedlist program
Least common ancestor in binary tree program
Python codes of Linear Search and Binary Search have been added.
Hey there, Added support for maths section. 1. GCD 2. Prime-factors 3. Sieve 4. Catalan Numbers 5. Primality test
Added a dictionary folder and placed two python programs inside that
enqueue(): rear = (rear + 1)%size This logic is not implemented, the present circular queue behaves more or less like queue.
Your code breaks when you try to call insertAtEnd when the list is empty.
Returns the maximum value that can be put in a knapsack of capacity W