Commit Graph

58 Commits

Author SHA1 Message Date
Harshil
78beda5034
Merge pull request #282 from daniel-s-ingram/master
Solution to Problem 36
2018-04-03 17:59:02 +05:30
Daniel Ingram
b172ec3841 Solution to Problem 52 2018-04-03 00:04:38 -04:00
Daniel Ingram
6a8f1cf232 Solution to Problem 40 2018-04-02 23:46:28 -04:00
Daniel Ingram
9ed60ba882 Solution to Problem 36 2018-04-02 12:20:53 -04:00
Christian Bender
cf1447334e
Merge pull request #281 from daniel-s-ingram/master
Thanks for contribution
2018-03-30 21:36:17 +02:00
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
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
GirijaManoj kumar reddy Kalakoti
1ead4e0f2d
Added Solution to Problem 2 in a simple approach 2018-03-22 15:50:49 +05:30
Daniel Ingram
a5f0ae84ea Solution to Problem 22 2018-03-20 20:23:51 -04:00
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
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
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
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
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
shivg7706
b6b7784b1b another sol for problem_20 2018-03-03 10:30:31 +05:30
shivg7706
744803ad64 Adding Problem_08 2018-02-27 19:19:53 +05:30
Harshil
c4234192fa
Merge pull request #244 from arcsinecosine/master
My solution to the problem
2018-01-22 07:16:11 +05:30
Ben
92e0aa29b9
Add files via upload 2018-01-21 03:34:09 -05:00
Ben
1568432e82
Add files via upload 2018-01-21 03:27:19 -05:00
cclauss
4ee0e620cb Modernize Python 2 code to get ready for Python 3 AGAIN 2018-01-21 08:25:19 +01:00
cclauss
2ed1bad747
Merge branch 'master' into modernize-python2-code 2017-12-13 16:32:28 +01:00
Harshil
ac2b2d0735
Merge pull request #227 from christianbender/master
Refactoring solv1.py
2017-12-13 13:05:45 +05:30
Christian Bender
a81084c586
Refactoring solv1.py
Little embellishment of the code.
I put some comments and put readable identifiers. 
I documented the code.
2017-12-03 15:39:13 +01:00
Richie Bendall
f069c20715
Easier Solution To Problem 7 2017-11-29 21:02:02 +13:00
Harshil
9714aa31bc
Merge pull request #213 from Thejus-Paul/master
Problem 16 Added
2017-11-28 17:10:11 +05:30
Thejus-Paul
033744155c Added Solution
Added Solution for Problem 20
2017-11-27 10:44:32 +05:30
cclauss
4e06949072 Modernize Python 2 code to get ready for Python 3 2017-11-25 10:23:50 +01:00
Christian Bender
31ebde6e17
Problem 29
On this solution I used a 'set' data structure, since more efficient.
2017-11-19 22:03:30 +01:00
Thejus-Paul
c787a22d93 Problem 16 Added
Solution to the Problem 16  has been added.
2017-11-20 01:34:21 +05:30
Christian Bender
01f48e708d
Correction: File solv01.py
Identifier 'max' changed in 'maxNumber' , since 'max' is a function.
2017-11-19 15:13:50 +01:00
Christian Bender
8d9da8f623
Correction: File solv01.py
I have remove some semicolons.
2017-11-19 15:10:09 +01:00
Christian Bender
a5c954ff6e
Correction: File solv3.py
I have remove some semicolons. line 11, 12 and 42
2017-11-19 15:06:42 +01:00