sembee

Stories submitted by sembee

Functional programming interview question » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 2 years, 9 months ago

The F# solution to an exercise proposed by Starling Software to the potential applicants to test their functional programming skills. read more...

add a comment |category: |Views: 11

tags: another

Brainfuck interpreter in F#(fsharp.it)

submitted by sembeesembee(75) 3 years, 3 months ago

Brainfuck is an esoteric programming language whose grammar consists of only eight commands, written as a single character each. Writing an interpreter for this simple language in F# takes less the one hundred lines of code and is a good programming exercise and a solid starting point for anyone interested in writing a parser. read more...

add a comment |category: |Views: 33

tags: another

Project Euler in F# - Problem 22 » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 3 months ago

With F# we can mix programming paradigms in order to exploit the capabilities of the .Net framework while using a functional language. In this exercise we'll see how to access the filesystem and parse the content of a file, then we'll perform some calculation on the characters composing the text. read more...

add a comment |category: |Views: 11

tags: another

Project Euler in F# - Problem 5 (alternative solution) » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 3 months ago

The last article of this seres presented a naive brute-force approach to the computation of the least common multiple of a set of numbers. This time FSharp.it shows how to increase performance by 10000 times implementing a smarter solution based on the Euclidean algorithm. The code is written in F# and it is also used to teach the basics of functional programming. read more...

add a comment |category: |Views: 9

tags: another

Project Euler in F# - Problem 5 » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 3 months ago

The fifth problem of Project Euler asks to find the least common multiple of a set of numbers. This common exercise is analyzed by FSharp.it and solved using F#, then the solution is refined and the execution time reduced by twenty times. read more...

add a comment |category: |Views: 12

tags: another

Project Euler in F# - Problem 16 » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 3 months ago

FSharp.it presents another Project Euler's problem on the sum of the digits of a number. read more...

add a comment |category: |Views: 5

tags: another

Project Euler in F# - Problem 20 » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 3 months ago

Another Project Euler's problem solved using F#, the functional programming language developed by Microsoft. This time the exercise is related to the factorial function and the sum of the digits of a number. read more...

add a comment |category: |Views: 2

tags: another

Project Euler in F# - Problem 9 » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 4 months ago

The difficulty of Project Euler's exercises is increasing and this time we'll analyze the ninth problem, which is related to Pythagorean triplets. As always, the solution is written in F# and the code is used to explain how functional programming works. read more...

add a comment |category: |Views: 4

tags: another

Sorting odd and even numbers in F# » FSharp.it(fsharp.it)

submitted by sembeesembee(75) 4 years, 4 months ago

A small programming quiz on numeric sorting is solved with F# read more...

add a comment |category: |Views: 2

tags: another

Project Euler in F# - Problem 6(fsharp.it)

submitted by sembeesembee(75) 4 years, 4 months ago

A new episode of the series of articles devoted to teaching F# programming by solving Project Euler problems. This time Problem 6 is discussed. read more...

add a comment |category: |Views: 6

tags: another