Commit Graph

3270 Commits

Author SHA1 Message Date
Daniel Ingram
53d9989b13 Solution to Problem 12 2018-03-28 19:11:14 -04:00
Harshil
b4cbf5ddd8
Merge pull request #280 from daniel-s-ingram/master
Solution to Problem 19
2018-03-26 09:23:46 +05:30
Daniel Ingram
7b1b33a60a Solution to Problem 19 2018-03-25 23:14:59 -04:00
Harshil
9319981067
Merge pull request #279 from daniel-s-ingram/master
Solution to Problem 53
2018-03-26 07:07:40 +05:30
Daniel Ingram
eb40f43650 Solution to Problem 53 2018-03-24 21:48:48 -04:00
Harshil
4045f05b6b
Merge pull request #278 from daniel-s-ingram/master
Solution to Problem 21
2018-03-23 18:24:48 +05:30
Harshil
a2e615e6f8
Merge pull request #277 from girijamanojkumarreddy/master
Added a Solution using Euclidean Algo
2018-03-23 18:24:09 +05:30
girijamanojkumarreddy
f538ea51dc Added General solution for Problem 9 2018-03-23 16:27:25 +05:30
Daniel Ingram
68e5bb4804 Solution to Problem 76 2018-03-22 12:09:45 -04:00
Daniel Ingram
570c27cfdd Solution to Problem 21 2018-03-22 11:27:50 -04:00
girijamanojkumarreddy
49a33969e6 Added a Solution using Euclidean Algo 2018-03-22 19:29:44 +05:30
Harshil
5f1ab6b68e
Merge pull request #276 from daniel-s-ingram/master
Counting integer partitions
2018-03-22 19:11:23 +05:30
Daniel Ingram
888c51b9d2 Counting integer partitions 2018-03-22 09:33:54 -04:00
Harshil
92cbe09308
Merge pull request #275 from girijamanojkumarreddy/master
Added Solution to Problem 2 in a simple approach
2018-03-22 16:17:14 +05:30
GirijaManoj kumar reddy Kalakoti
1ead4e0f2d
Added Solution to Problem 2 in a simple approach 2018-03-22 15:50:49 +05:30
Harshil
fc3bdb6e12
Merge pull request #274 from gabrielangelo/master
hash functions added
2018-03-21 09:09:32 +05:30
Harshil
6b60a6b53c
Merge pull request #273 from daniel-s-ingram/master
Algorithm for transforming one string into another in the most cost-efficient way
2018-03-21 09:08:08 +05:30
Daniel Ingram
070ebb3afc Merge branch 'master' of https://github.com/daniel-s-ingram/PythonAlgorithms 2018-03-20 20:24:27 -04:00
Daniel Ingram
a5f0ae84ea Solution to Problem 22 2018-03-20 20:23:51 -04:00
gabriel
1fa23f57d7 hash functions added 2018-03-20 20:48:58 -03:00
Daniel Ingram
0deb227705
Update min-cost-string-conversion.py 2018-03-20 18:50:55 -04:00
Daniel Ingram
6abab54c2b Minimum cost for transformation from one string to another using basic operations 2018-03-20 18:49:47 -04:00
Daniel Ingram
a753acf1de Computes minimum cost for converting one string into another 2018-03-20 15:23:09 -04:00
Harshil
c461b34b2b
Merge pull request #272 from daniel-s-ingram/master
Fixed xrange compatibility for Python 3
2018-03-19 21:20:37 +05:30
Daniel Ingram
a872085183 Merge branch 'master' of https://github.com/daniel-s-ingram/PythonAlgorithms 2018-03-19 11:27:12 -04:00
Daniel Ingram
924d0a0552 Added xrange compatibility for Python 3 2018-03-19 11:26:47 -04:00
Daniel Ingram
7ee262e514
Merge branch 'master' into master 2018-03-19 10:11:24 -04:00
Daniel Ingram
a4cd8978b4 Solution to Problem 11 2018-03-19 10:10:10 -04:00
Daniel Ingram
c6c5d62311 Fixed xrange compatibility for Python 3 2018-03-19 09:29:46 -04:00
Harshil
3899f9b507
Merge pull request #271 from cclauss/patch-6
from __future__ import print_function For Python 3
2018-03-19 09:00:46 +05:30
Harshil
5e21232e82
Merge pull request #270 from cclauss/patch-5
xrange() was removed in Python 3 in favor of range()
2018-03-19 09:00:22 +05:30
Harshil
92484f26af
Merge pull request #269 from cclauss/patch-3
Fix Python 2 syntax error in matrix_chain_order.py
2018-03-19 08:59:21 +05:30
Harshil
395fa638f0
Merge pull request #268 from daniel-s-ingram/master
Solution to Problem 48
2018-03-19 08:58:42 +05:30
cclauss
4fd777e3b4
Update SimpsonRule.py 2018-03-19 03:28:00 +01:00
cclauss
3615322790
from __future__ import print_function for Python 3
@ltdouthit __print()__ is a function in Python 3
2018-03-19 03:27:22 +01:00
cclauss
0516bde45f
from __future__ import print_function For Python 3
@ltdouthit __print()__ is a function in Python 3
2018-03-19 03:25:29 +01:00
cclauss
705f43ad5b
xrange() was removed in Python 3 in favor of range()
@daniel-s-ingram Similar changes needed on Problems 25 and 28 so they can run on Python 3.

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./Project Euler/Problem 10/sol1.py:5:11: F821 undefined name 'xrange'
	for i in xrange(2, int(sqrt(n))+1):
          ^
./Project Euler/Problem 10/sol1.py:17:11: F821 undefined name 'xrange'
	for i in xrange(3, n, 2):
          ^
./Project Euler/Problem 25/sol1.py:10:12: F821 undefined name 'xrange'
		for i in xrange(2, n+1):
           ^
./Project Euler/Problem 28/sol1.py:7:11: F821 undefined name 'xrange'
	for i in xrange(1, int(ceil(n/2.0))):
          ^
4     F821 undefined name 'xrange'
```
2018-03-19 03:18:18 +01:00
cclauss
00a2b90356
Fix Python 2 syntax error in matrix_chain_order.py 2018-03-19 02:48:09 +01:00
Daniel Ingram
2d2644ee17 Solution to Problem 17 2018-03-18 17:45:28 -04:00
Daniel Ingram
689e93439a Solution to Problem 17 2018-03-18 17:44:18 -04:00
Daniel Ingram
46b4e51d6e Solution to Problem 48 2018-03-18 13:59:01 -04:00
Harshil
6035672096
Merge pull request #267 from AmirNaghibi/spelling-fix
fixed spelling error
2018-03-15 13:43:50 +05:30
Harshil
ee69c09577
Merge pull request #266 from daniel-s-ingram/master
Brute force solution to Problem 10
2018-03-15 13:43:06 +05:30
Amir Naghibi
e6773616a6 fixed spelling error 2018-03-14 21:25:03 -07:00
Daniel Ingram
81dc221ee2 Solution to Problem 28 2018-03-14 17:18:59 -04:00
Daniel Ingram
7704151504 Solution to Problem 28 2018-03-14 16:03:44 -04:00
Daniel Ingram
ac14455ac0 Combinatoric solution using Pascal's Triangle to Problem 15 2018-03-14 15:39:52 -04:00
Daniel Ingram
301c907376 Dynamic programming solution to Problem 25 2018-03-14 14:55:07 -04:00
Daniel Ingram
7beaeae014 Brute force solution to Problem 10 2018-03-14 14:35:16 -04:00
Harshil
8be9dfc39a
Merge pull request #264 from shivg7706/master
QuineMcCluskey
2018-03-12 21:37:32 +05:30