Git Product home page Git Product logo

rsa_algorithm's Introduction

GeeksforGeeks Python

Following project contains Python3 implementation of the Algorithms and Questions found in GeeksforGeeks.

“Talk is cheap. Show me the code.” ― Linus Torvalds


Format of the Programs :

1. # <link reffering to the respective GeeksforGeeks page>
2. <from module import module | if any>
3. <Data Structures used | if any>
4. <Primary Function : handles the computation> 
   : return the desired result (whenever possible)
5. <Helper functions | if any>
6. # main
7. if __name__=="__main__" :
8. <inside main> 
   : get input from the user 
   : pre-processing of data | if required 
   : call the function 
   : print the result
9. Documentation for the code 
   : Input Explanation 
   : Input <Example>
   : Output <Example>
10. Documentation of the GeeksforGeeks page content
  • For better code understanding, please follow the Style guide for python (PEP 8) recommendations as per the Python docs.
  • Keep the code/documentation within warp of 100 letters. If the line exceeds this limit, bring it down to the next line.
  • Also, do not forget to leave ample number of comments!!

“Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed?'” – Steve McConnell

Imp : In the code, provide Function Annotations as per PEP 3107 -- Function Annotations for every parameter passed in a function. Return type specification is optional.

Annotations for parameters take the form of optional expressions that follow the parameter name:

def foo(a: expression, b: expression = 5):
    ...

#Ex : 
def foo(l: list, s: str = 'xyz'):
    ...

#In pseudo-grammar, parameters now look like identifier [: expression] [= expression]

Annotations for the type of a function's return value take the form of optional expressions that is done like so:

def foo() -> expression:
    ...
    
#Ex :
def sum() -> int:
    ...
    

Note : this is not affiliated with GeeksforGeeks in any way other than for reference purpose.
Also Note : the code implemetation (and sometimes even algorithm) might be different than the one in GeeksforGeeks. The decision is upon the author and author alone. New Algorithms for the same problem statement may be added in the future.

rsa_algorithm's People

Contributors

kaushikthedeveloper avatar

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.