In 2014, my business partner and a close friend Kirill and I launched one of the first escape room in Amsterdam. During the next five years, we built and opened two more escape room, hired a number of people, and then sold the business. Before the details disappear from our memories, I want to write … Continue reading “The Story of Saving Amsterdam”
Author: Andrew Shitov
A more idiomatic Raku solution
A couple of days ago I published a straightforward solution to the Task 2 of Week 75 of The Weekly Challenge. Despite that solution perfectly works, I wasn’t satisfied with it and wanted a more Raku-ish code. Here is the next iteration of it. my @hist = 3, 2, 3, 5, 7, 5; my $max … Continue reading “A more idiomatic Raku solution”
Largest Rectangle Histogram: The Raku Challenge Week 75, task 2
Hello, here is my solution to the Task 2 of Week 75 of the Weekly Challenge solved in the Raku programming language.
You are given an array of positive numbers @A. Write a script to find the largest rectangle histogram created by the given array.
Hello, here is my solution to the Task 2 of Week 75 of the Weekly Challenge solved in the Raku programming language.
You are given an array of positive numbers @A. Write a script to find the largest rectangle histogram created by the given array.
Coins Sum: The Raku Challenge Week 75, task 1
Here is my solution to the Task 1 of the Week 75 of the Weekly Challenge solved in the Raku programming language.
You are given a set of coins @C, assuming you have infinite amount of each coin in the set. Write a script to find how many ways you make sum $S using the coins from the set @C.
Here is my solution to the Task 1 of the Week 75 of the Weekly Challenge solved in the Raku programming language.
You are given a set of coins @C, assuming you have infinite amount of each coin in the set. Write a script to find how many ways you make sum $S using the coins from the set @C.
The Pearls of Raku, Issue 9: toss a coin; topic vs temporary variables
In this issue of the series, we are talking about two topics. The first is how to toss a coin using Raku. The second is how to avoid duplicated computations by setting the topic.
In this issue of the series, we are talking about two topics. The first is how to toss a coin using Raku. The second is how to avoid duplicated computations by setting the topic.
The Pearls of Raku, Issue 8: the secrets of min (and max)
In this issue, we’ll be focusing on the built-in min function. Occasionally also on max, but the whole story is well applicable to both of them. Some of the elements can also be used with other functions.
In this issue, we’ll be focusing on the built-in min function. Occasionally also on max, but the whole story is well applicable to both of them. Some of the elements can also be used with other functions.
The Pearls of Raku, Issue 7: Triangular reduction metaoperator
Welcome to the next issue of the series about the cool practical stuff in the Raku programming language. Today, we will discuss the usage of the so-called triangular reduction metaoperator on the following examples: [\*] and [\,].
Welcome to the next issue of the series about the cool practical stuff in the Raku programming language. Today, we will discuss the usage of the so-called triangular reduction metaoperator on the following examples: [\*] and [\,].
The weekly challenge nr 74
The Perl Weekly Challenge was renamed to The Weekly Challenge recently, so there’s a bigger chance that more solutions in other programming languages appear there.
In the two Raku solutions in this post, you can see how you can use the built-in Bag data type.
Task 1. Majority Element (Raku and C++ solutions). Task 2. First Non-Repeating Character (Raku solution).
The Perl Weekly Challenge was renamed to The Weekly Challenge recently, so there’s a bigger chance that more solutions in other programming languages appear there.
In the two Raku solutions in this post, you can see how you can use the built-in Bag data type.
Task 1. Majority Element (Raku and C++ solutions). Task 2. First Non-Repeating Character (Raku solution).
The Pearls of Raku, Issue 6: MAIN and BEGIN
Another set of tiny but useful practical things that can help your coding practice in the Raku programming language. In this issue, we are talking about the MAIN function and the BEGIN phaser.
Another set of tiny but useful practical things that can help your coding practice in the Raku programming language. In this issue, we are talking about the MAIN function and the BEGIN phaser.
The Pearls of Raku, Issue 5: the where clause
In this issue, I will be looking at the three use cases with the where clause. All the examples refer to the MAIN function, but the content is applicable to any other function.
In this issue, I will be looking at the three use cases with the where clause. All the examples refer to the MAIN function, but the content is applicable to any other function.
Raku challenge week 73
Here are my solutions to the tasks of Week 73 of the Perl Weekly Challenge: 1) Min Sliding Window and 2) Smallest Neighbour.
Here are my solutions to the tasks of Week 73 of the Perl Weekly Challenge: 1) Min Sliding Window and 2) Smallest Neighbour.
Rīga, Perl and Raku
A short overview of the places where I hosted different Perl, Perl 6, and Raku events in the past years. The photos below are all made in August 2020.
A short overview of the places where I hosted different Perl, Perl 6, and Raku events in the past years. The photos below are all made in August 2020.
Raku challenge week 72
Raku challenge, week 72. Task 1: count trailing zeroes in a factorial of an integer. Task 2: Get lines A to B from a text file.
Raku challenge, week 72. Task 1: count trailing zeroes in a factorial of an integer. Task 2: Get lines A to B from a text file.
The Pearls of Raku, Issue 4: unit sub MAIN and command line, round and precision
Welcome to the next issues if The Pearls of Raku! Today, some interesting findings that I discovered while reviewing the previous weeks of The Perl Weekly Challenge and today when I added a new graph to The Coronavirus Observer.
Welcome to the next issues if The Pearls of Raku! Today, some interesting findings that I discovered while reviewing the previous weeks of The Perl Weekly Challenge and today when I added a new graph to The Coronavirus Observer.
Raku challenge week 71
Solving the tasks of Week 71: Finding peak elements and Removing the item from a linked list.
Solving the tasks of Week 71: Finding peak elements and Removing the item from a linked list.
🎥 Raku challenge review week 70
In this article, my review of the Raku solutions to the Weekly Challenge 70. The tasks are: 1) Character swapping, and 2) Generating Gray code. As a regular part of the review, there are two video covering all solutions that were sent by the participants.
In this article, my review of the Raku solutions to the Weekly Challenge 70. The tasks are: 1) Character swapping, and 2) Generating Gray code. As a regular part of the review, there are two video covering all solutions that were sent by the participants.
🎥 Raku challenge review week 67
My review of the solutions in the Raku programming language of the tasks from Week 67 of the Weekly Challenge. The task 1 is to generate numeric combinations. The task 2 is to work with the letters on a phone keypad.
My review of the solutions in the Raku programming language of the tasks from Week 67 of the Weekly Challenge. The task 1 is to generate numeric combinations. The task 2 is to work with the letters on a phone keypad.
The Pearls of Raku, Issue 3: tr, TR, and StrDistance
How do tr, TR string replacements work in Raku. What is a StrDistance type? What happens when you print such objects with ‘put’ and ‘say’?
How do tr, TR string replacements work in Raku. What is a StrDistance type? What happens when you print such objects with ‘put’ and ‘say’?