This repository contains Data structures, Algorithms and their common usecases implemented by me in python. This repository is really helpful for those, who prefer to do competitive programming in python.
Click on "Code" to see code of that data structure or algorithm, and click on "Learn" to read markdown.
Lambdas
lambda arguments : expression
List Comprehensions
number_list = [ x for x in range(20) if x % 2 == 0]
Class
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
p1 = Person("John", 36)
print(p1.name)
print(p1.age)
Map
map(function_object, iterable1, iterable2,...)
filter
filter(function_object, iterable)
Input Space Separated Integers as List
numbers = list(map(int, input().split()))
Books, Videos and Lecture Notes available in are available here - Learning Resources
This repository is open to contribution. Contributors are mentioned here:
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details