Commit Graph

32 Commits

Author SHA1 Message Date
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
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
Christian Bender
567f2adab8
Correction: Remove semicolons
I have remove the semicolons in line 8 and line 12
2017-11-19 14:54:30 +01:00
Harshil
990b367bce
Merge pull request #205 from Thejus-Paul/patch-1
Problem Euler Solution Added
2017-11-15 19:09:51 +05:30
Thejus-Paul
0f78cd6a55 Project Euler Solution Added 2017-11-12 23:56:18 +05:30
Thejus-Paul
3fae059b61 Added Question 9 2017-11-09 06:15:10 +05:30
Thejus-Paul
247f1b736b
created sol1.py 2017-11-09 02:58:05 +05:30
bT-53
20a4577903 Add a soution of ProjectEuler Problem 13 2017-10-27 09:19:58 +07:00
Sachin Arora
7284714d0d Project Euler Solutions Added. 2017-10-24 21:11:19 +05:30
Sachin Arora
848432c6fe Project Euler Problems Added. 2017-10-24 20:19:14 +05:30