codesankalp / dsalgo

MIT License
8 stars 24 forks source link

Implement Basic Math Algorithms #14

Open devkapilbansal opened 3 years ago

devkapilbansal commented 3 years ago

Currently, python provides basic math operations but they are not that flexible. Like you can calculate H.C.F. of two numbers but what if we want to calculate H.C.F. of a list. Also, we can implement other algorithms like for prime, next prime, last prime etc.

keshavgbpecdelhi commented 3 years ago

https://github.com/codesankalp/dsalgo/blob/master/math.py It consists of : HCF and LCM of list and it's k elements Prime list Next Prime and Previous Prime

devkapilbansal commented 3 years ago

@keshavgbpecdelhi there are a lot more that can be implemented. I would request you to search for them and make a pull request on it.

codesankalp commented 3 years ago

@keshavgbpecdelhi now the master is at it's previous commit. Your maths file is in math branch (if you want to take this branch in your fork just fetch it and make pull request. This branch will be deleted in 2 days). First fork this repo and then make pull request. I think now it is clear. If you have any question then please ask here.