Skip to content

Instantly share code, notes, and snippets.

View mj2266's full-sized avatar

Manjyot Singh Nanra mj2266

  • Mumbai
View GitHub Profile
@mj2266
mj2266 / Binary Indexed Tree.py
Last active August 30, 2019 06:11 — forked from rajatdiptabiswas/Binary Indexed Tree.py
Implementation of Binary Indexed Tree/Fenwick Tree in Python
#!/usr/bin/env python3
"""
Binary Indexed Tree / Fenwick Tree
https://www.hackerearth.com/practice/notes/binary-indexed-tree-made-easy-2/
https://www.topcoder.com/community/data-science/data-science-tutorials/binary-indexed-trees/
https://www.youtube.com/watch?v=v_wj_mOAlig
https://www.youtube.com/watch?v=kPaJfAUwViY
"""
@mj2266
mj2266 / rsa.py
Last active April 20, 2020 19:43
A simple RSA implementation in Python
'''
620031587
Net-Centric Computing Assignment
Part A - RSA Encryption
'''
from __future__ import division
import random
'''