Code Monkey home page Code Monkey logo

advanced-data-structures-with-python's Introduction

Advanced Data Structures with Python

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.

Contents:

Click on "Code" to see code of that data structure or algorithm, and click on "Learn" to read markdown.

Algorithms-

  • Dijkstra's Shortest Path Algorithm (Python) Code
  • Kahn's Algorithm for Topological Sort Code Learn
  • Depth First Search | Java_Code | Python_Code
  • Floyd Warshall Algorithm Code Learn
  • Longest Common Subsequence (Java) Code
  • Longest Common Substring (Java) Code
  • Array rotation reversal method Code
  • Pattern Searching KMP(Knuth Morris Pratt) algorithm Code

Data Structures-

Learning Python ( the pythonic way)

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)

Python Tricks

Input Space Separated Integers as List

numbers = list(map(int, input().split()))

Resources to Learn Python

Books, Videos and Lecture Notes available in are available here - Learning Resources

Some Other Resources

  • Real Python
  • Python Jumpstart by Building 10 Apps
  • Learn Python the Hard Way
  • Code Academy: Learn Python
  • Code School: Learn Python
  • Python for Entrepreneurs
  • Intro to Python for Data Science
  • Automate the Boring Stuff with Python
  • Learn Python, it's Cake
  • BONUS: Practical Python and OpenCV

Contributing

This repository is open to contribution. Contributors are mentioned here:

  1. Bhavin Jawade

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

advanced-data-structures-with-python's People

Contributors

bhavinjawade avatar hinagupta25sept avatar mcmonojit avatar priyansh14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advanced-data-structures-with-python's Issues

Explanation for Disjoint sets.

There is no explanation for Disjoint Sets.
I have prepared a study of Disjoint sets in the form of markdown and would like to contribute it.

Clean-up for this repo

# When this repository is present in a local computer or if an user downloads this repo for offline use it is confusing to
find the explanation document of a particular algorithm or data structure.

Solution: Put each algorithm / data structure file and its's corresponding explanation file into a folder with the same name as the algorithm / data structure.

Unbounded Knapsack using Dynamic Programming and add Rod Cutting Problem and Coin Change Problem as it's two important variations

I would love to add the famous problem of Unbounded Knapsack using Dynamic Programming and add Rod Cutting Problem and Coin Change Problem as it's two important variations. If you would kindly assign me to the issue.

@Ishita-0112, Sounds good. Let me create an issue for this and assign it you. Please reply to the following issue.

Originally posted by @bhavinjawade in #8 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.