HackerRank Functional Challenges HR F#: Lambda Calculus - Evaluating Expressions #2 The first λ-calculus evaluating expression problem was very easy. The second one is similar: Compute the value of (λx.x+1)((λy.y+2)3). Just to make a bit more fun from

HackerRank Functional Challenges HR F#: Lambda Calculus - Evaluating Expressions #1 The next set of problems are about performing calculations with λ-functions. The first one is to check that the reader is confident with mixing λ-calculus and algebraic operators: Compute the value of (λx.

HackerRank Functional Challenges HR F#: Lambda Calculus - Reductions #4 The last one from reduction problems is following: Reduce the following expression, using the beta-rule, to no more than one term. If the expression cannot be reduced, enter "CAN'T REDUCE". (λg.

HackerRank Functional Challenges HR F#: Lambda Calculus - Reductions #3 The third λ-calculus problem is a bit more advanced (although still simple): Reduce the following expression, using the beta-rule, to no more than one term. If the expression cannot be reduced, enter "

HackerRank Functional Challenges HR F#: Lambda Calculus - Reductions #2 The second λ-calculus problem is following: Reduce the following to no more than one term. If the expression cannot be reduced, enter "CAN'T REDUCE". ((λx.((λy.(x y)) x)) (λz.w)

HackerRank Functional Challenges HR F#: Lambda Calculus - Reductions #1 The Lambda Calculus - Reductions #1 is rather unusual. Instead of submitting the code, the required submission is a shortening of the lambda-expression. Reduce the following expression to no more than one term.

HackerRank Functional Challenges HR F#: Area Under Curves and Volume of Revolving a Curve The next problem, Area Under Curves and Volume of Revolving a Curve, in mathematically advance so I introduce some therms and facts first. Numerical integration is the measuring the area between function and

arduino Arduino Traffic Light This traffic light is based on the first example. The same resistor + LED is replicated three times and attached to the different pins. The very common logic for traffic light is "STOP&

F# HR F#: Evaluating eˣ The problem Evaluating e^x: The series expansion of eˣ is given by $$1 + x + \frac{x^2} {2!} + \frac{x^3} {3!} + \frac{x^4} {4!} + ...$$ Evaluate eˣ for given values of

F# HR F#: Updating List The problem Updating List requires learning how to generate one list from another. Update the values of a list with their absolute values. In many other programming languages the common approach is to

arduino First Arduino Project: Blinking LED It is really exciting to do even small hardware project after so many years of software development. That's what I can say after making LED blinks with Arduino. That's the story how I

F# HR F#: List Length The problem List Length is interesting because it can be solved using mutable counter but it also can be solved in more functional way. Count the number of elements in an array without

F# HR F#: Sum of Odd Elements The problem Sum of Odd Elements: You are given a list. Return the sum of odd elements from the given list. The solusion is basically just an invocation of the List.fold from

F# HR F#: Reverse a List The problem Reverse a List encourages to learn List.rev. You are given a list of elements. Reverse the list without using the reverse function. The simplest implementation is not very efficient one

F# HR F#: Array Of N Elements The problem Array Of N Elements requires to write the function that returns N items. The string serialisation of the data structure should be very specific and similar to [ 1, 2, 3 ]. In

F# HR F#: Filter Positions in a List The next one is Filter Positions in a List: For a given list with N integers, return a new list removing the elements at odd positions. There are a few methods in the

F# HR F#: Filter Array The next HackerRank functional problem is Filter Array. Filter a given array of integers and output only those values that are less than a specified value X. The idea is to create a

F# HR F#: List Replication This is going to be more interesting than[1] previous[2] three[3]. Given a list, repeat each element in the list n amount of times. The first line of the input is

Raspberry Pi WiFi to Ethernet Raspberry Pi Router The WiFi access point is quite far from my desk so the signal is very unstable. It is a bit tricky, but possible to setup an intermediate access point with Raspberry Pi and

Raspberry Pi Access Point on Raspberry Pi RPI3 has build-in WiFi, RPI2 can be easily extended with WiFi adapter. Such adapter can be configured to connect to access point or act as access point itself. There is the good instruction

Functional Programming HR F#: Hello World N Times One more HR F# challenge for today - Hello World N Times: Print "Hello World" N amount of times. ... A single line of input containing integer N, the number of times

Functional Programming HR F#: Hello World The second F# challenge on HackerRank is to write Hello World program in F#. This is a fairly simple program. This program defines F# function and calls it from the main method. The

Functional Programming Solving HackerRank's Functional Challenges in F#: Solve Me First FP My F# skills are need to be refreshed. Couple of years ago I had a good time practicing Go by solving a number of programming challenges on Hackerrank. This time I will try

Care about ⌘+S, use AutoSave in VS Code After two years of intense coding and hundreds of thousands presses on S while saving (⌘+S) it looks deteriorating: It looks like something can be done about - VS Code has an option

Scary Ghost The Ghost team did a great job and the new editor is awesome. The design is cool. I especially like the night theme. Content migration was ok. But the update itself was a