Archive for January, 2008:

Project Euler in F# – Problem 20

{ Posted on Jan 29 2008 by claudio }
Project Euler's Problem 20 was trickier than I expected. I'm quite sure that there is a smart solution, but there is also a "dumb" one and this is the one I'm going to present you. The problem says: n! means n × (n ...Read More »

Essere pagati per presentarsi ad un colloquio

{ Posted on Jan 27 2008 by claudio }
Ormai pensavo di aver visto tutti i social network, ma a quanto pare mi sbagliavo. Ho appena ricevuto un invito per iscrivermi a NotchUp, un nuovo social network dedicato all'incontro fra domanda e offerta di lavoro. La particolarità è che in ...Read More »

Cuffaro si è dimesso

{ Posted on Jan 26 2008 by claudio }
Tags : , , , ,
Categories : News, Varie
Finalmente noi siciliani ci siamo liberati di Cuffaro! Certo, fare andare via un Presidente delle Regione condannato a 5 anni per favoreggiamento e con l'interdizione a vita dai pubblici uffici non è stato facile, ma a partire da oggi possiamo tornare ...Read More »

Project Euler in F# – Problem 9

{ Posted on Jan 25 2008 by claudio }
Today's exercise is Project Euler Problem 9, that says: A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a² + b² = c² For example, 3² + 4² = 9 + 16 = 25 = ...Read More »

Votatemi!

{ Posted on Jan 25 2008 by claudio }
No, non ho intenzione di parlare di elezioni nè della tristissima situazione politica italiana, bensì di una piccola novità di questo blog. In fondo a ciascun post è adesso presente un sistema di rating che permette di votare l'articolo con un ...Read More »

Project Euler in F# – Problem 6

{ Posted on Jan 23 2008 by claudio }
The exercises proposed by Project Euler are ordered by difficulty, and the one I'll discuss today is ranked sixth. However, I think it is one of the easiest to solve, since it doesn't require any trick and the solution is already ...Read More »

Sorting odd and even numbers in F#

{ Posted on Jan 22 2008 by claudio }
An Italian Microsoft Evangelist posted today a small programming exercise on his blog, presenting the solution with LINQ. The exercise says (translated from Italian by me): Given a list of unordered numbers (for instance 1, 7, 9, 2, 3, 4, 3, 4, ...Read More »

Project Euler in F# – Problem 1 (alternative solution)

{ Posted on Jan 20 2008 by claudio }
In the last article I presented a naive solution for the first Project Euler problem, that asks us to "find the sum of all the multiples of 3 and 5 below 1000". There are many different solutions for the same problem ...Read More »

fsharp.it, il nuovo portale su F#

{ Posted on Jan 18 2008 by claudio }
Qualche tempo fa anticipavo la mia intenzione di avviare un nuovo blog più tecnico e adesso quel momento è arrivato! Ho aperto un portale tematico dedicato ad un tema abbastanza specialistico nel mondo dell'informatica ma che sta acquisendo sempre più popolarità. Si ...Read More »

Project Euler in F# – Problem 1

{ Posted on Jan 18 2008 by claudio }
I'm going through two parallel roads to learn F#: I read the "Foundations of F#" book written by Robert Pickering for the theoretical aspects and then I practice writing some code challenging myself with the problems proposed by Project Euler. There ...Read More »