Commit Graph

91 Commits

Author SHA1 Message Date
julien lengrand-lambert
3b6074fc50 Cards are now sorted on Hand creation directly. Everything is handled using proper Objects. Next step is to find how to calculate someone's hand value 2013-09-12 06:45:22 +02:00
julien lengrand-lambert
9f6c0aac74 Problem is obviously way more complex than expected. Changing to a more complex structure. Still in refactoring 2013-09-11 18:51:17 +02:00
julien lengrand-lambert
8fe580e24d Implements the stripping routine> Everything is sequential, but as we dont have much data this is not really an issue 2013-09-11 16:17:24 +02:00
julien lengrand-lambert
817c2b8683 Starts working on problem 54.
Currently just loads the data in a way that can be used.
Next step is to sort players cards
2013-09-11 16:06:19 +02:00
Julien Lengrand-Lambert
995bdf13b7 Solves problem 44. a bit long but first guess was the right one 2012-10-21 19:55:59 +02:00
Julien Lengrand-Lambert
11aa1ef61e Solves Problem 55 2012-10-21 18:13:05 +02:00
203ea69dbb Solves problem 43
Starts working on problem 55
2012-10-20 20:00:36 +02:00
99334f1594 Solves problem 50
This means I know solveed 50 euler problems. Youhou !
2012-10-19 13:39:15 +02:00
Julien Lengrand-Lambert
957ede8215 Solves Problem 40 of Project Euler
Dumbest solution ever, but so fast to implement.
And finally runs in less than 2 seconds on my Netbook.

I really wonder even why search for optimization.

Python int to str conversion is so useful for those problems.
2012-10-16 23:25:29 +02:00
57353d2d26 commit before going to bed 2012-10-16 22:13:06 +02:00
aa788db715 Updates README 2012-10-16 21:47:34 +02:00
1bedcd4c00 Solves problem 56
Didn't expect it to be so simple.

I'd like to find the nice way to sum all numbers of an integer
2012-10-16 21:46:48 +02:00
julien Lengrand-Lambert
f1f4da4e8f Update README.markdown
Adds information about how I solve problem. 
Puts too long solutions in bold.
2012-10-16 22:20:53 +03:00
e92ed128d2 (Finally) solves problem 26 of PRoject Euler.
Thanks to an upvote on Stack Overflow :)
2012-10-16 19:29:39 +02:00
a7e681e0af Solves problem 46. Commuting is awesome 2012-05-25 18:38:20 +02:00
julien Lengrand-Lambert
e761bc0df0 Small commit for Masterbranch 2012-05-07 13:32:31 +02:00
julien Lengrand-Lambert
5d94287f1b Solves problem 33 of Project Euler.
Ugly but result comes in an instant, so . . .
2012-05-03 18:56:37 +02:00
julien Lengrand-Lambert
a48b0ea435 Solves problem 38 in less than one second.
Code is not that beautiful though.
2012-05-03 12:45:02 +02:00
julien Lengrand-Lambert
677494354e Solves problem 41.
Would really need some decorators to spped up the process and get it
prettier though.
2012-05-02 18:55:30 +02:00
julien Lengrand-Lambert
a173f16dcb Solves Problem 37 of Project Euler
Could be refactored a bit to avoid code redondance.
Uses my list of primes numbers

Performs calculations in less than one minute.
2012-05-02 14:20:07 +02:00
julien Lengrand-Lambert
a00fe0fab3 Solves Problem 33 (coin change). Adds some new problems 2012-05-02 09:05:08 +02:00
julien Lengrand-Lambert
f09f83e0a4 Finally solves problem 35. Problem of . . . definition . 2012-05-01 22:03:10 +02:00
Julien Lengrand-Lambert
200d812bc4 Solving problem 35. Bug to be found 2012-04-30 00:32:46 +02:00
unknown
a5fb54a2c5 Small update, removes clear email
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-23 15:52:29 +01:00
Julien Lengrand-Lambert
abfecf027d On my way to problem 31!
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-04 01:03:22 +01:00
Julien Lengrand-Lambert
f1b1a93006 On my way to problem 31!
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-01 21:54:05 +01:00
Julien Lengrand-Lambert
74e8477389 Prepares problem 97
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-29 15:15:49 +01:00
Julien Lengrand-Lambert
691187f50a Problem 3 more efficient.
Downloaded some new stuff on primes. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-22 23:49:15 +01:00
Julien Lengrand-Lambert
98d0e588d8 Problem 3 more efficient.
Downloaded some new stuff on primes. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-21 20:40:57 +01:00
Julien Lengrand-Lambert
6caa5feb23 Solves Problem 32. Opens the path to pandigital problems !
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-20 22:26:00 +01:00
Julien Lengrand-Lambert
1fdf9883b8 Solve a new problem.
Prepares some others. 

More than 35 problem solved ! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-20 16:17:10 +01:00
Julien Lengrand-Lambert
f16f45ce7b Adds a profiler to help enhancing problem solving 2012-02-15 15:45:27 +01:00
Julien Lengrand-Lambert
ebc41b633a Trying to solve problem 39 with a bit more of object handling.
Solution is ok, but takes longer to perform. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-10 13:38:35 +01:00
Julien Lengrand-Lambert
6eb94866e1 Solves Problem 39. 1 minute time is reached, but the solution comes up
to be very ugly. 
I'm sure I can find something better than that !

Still have to perform some good work on prime numbers! (one day . . . )
I begin to lack some primes problems cause of that :s 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-10 00:45:20 +01:00
Julien Lengrand-Lambert
581c01b9ac Solves Problem 28. Easy after all
Excellent processing time

Still have to perform some good work on prime numbers! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 22:43:23 +01:00
Julien Lengrand-Lambert
a198d3fc49 Prepares next problem
Still have to perform some good work on prime numbers! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 17:33:14 +01:00
Julien Lengrand-Lambert
648870e04d Solves problem 34. Average running time, could be optimized with
memoization

Still have to perform some good work on prime numbers! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 17:30:56 +01:00
Julien Lengrand-Lambert
a85994f38a Solves problem 30. Good running time
Still have to perform some good work on prime numbers! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 16:49:39 +01:00
Julien Lengrand-Lambert
a790a6de0e Solves 4 problems.
Eclipse integration for simpler use with Windows. 

Still have to perform some good work on prime numbers! 


Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 16:48:20 +01:00
Julien Lengrand-Lambert
939811371e Solves 4 problems.
Eclipse integration for simpler use with Windows. 

Still have to perform some good work on prime numbers! 


Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-08 14:31:47 +01:00
Julien Lengrand-Lambert
68c2f664cd Adds files for eclipse integration
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-07 09:41:30 +01:00
julien Lengrand-Lambert
52a41494f3 Add manual line breaks 2012-02-03 14:42:58 +01:00
Julien Lengrand-Lambert
08549c4a2a Updates README to include running time.
Work on primes to be performed. dump has been created to avoid recalculation each time.
But I 'll spend some time working on sieves.

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-03 14:37:46 +01:00
Julien Lengrand-Lambert
5d55ff3f50 Updates README to include running time.
Work on primes to be performed. dump has been created to avoid recalculation each time.
But I 'll spend some time working on sieves.

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-03 14:33:31 +01:00
Julien Lengrand-Lambert
b478567e70 Starts problem 35
Seems like I have a small problem.
I have to make this solution more elegant and efficient. Working on it now

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-02 14:03:22 +01:00
Julien Lengrand-Lambert
a35f0a5c3b Solves Problem 36.
Initiates problem 35

First shot was ok.
Problem 35 can be done with some reuse.

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-01 22:55:23 +01:00
Julien Lengrand-Lambert
51c55cc459 Solves Problem 27.
Simple problem of abs values of primes. . .
Working on problem 36

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-01 14:33:24 +01:00
Julien Lengrand-Lambert
ad780118cc Working on Problem 27.
Code is done, but seems that I got the wrong solution :).
Problem 26 is actually though, and was paused for now.

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-01 00:48:43 +01:00
Julien Lengrand-Lambert
d30505b12e Solves Problem 24.
Gets all permutations, and choose one of those.
Good solution could be to avoid the list and use an iterator

Problem 26 seems though :s.

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-01-27 12:23:10 +01:00
Julien Lengrand-Lambert
8849860470 Solves Problem 23.
First solution came good, but slow.
Could be optimized easily

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-01-26 18:15:26 +01:00