• Why TypeScript

checkio
 

Hello CheckiO users! 🙂

🌟 Some time ago, we switched our JavaScript CheckiO portal to TypeScript, which resulted in a complete restructuration. Since then we’ve received a lot of feedback. All things considered, we’ve wanted to highlight why we thought moving to TS might be a good thing for all of us. Hence our article 💻Why TypeScript⚡. Please, tell us what you think!

💪 Challenge yourself with our latest missions:

The first mission is called Find Quotes and here your task is to find all the quotes in a given text as fast as you can.

findQuotes('"Greetings"') == ['Greetings']
findQuotes('Hi') == []
findQuotes('good morning mister "superman"') == ['superman']
findQuotes('"this" doesn\'t make any "sense"') == ['this', 'sense']

The second one is the Largest Rectangle in a Histogram, where you should find the size of the biggest rectangle on the histogram.

largestHistogram([5]) == 5
largestHistogram([5, 3]) == 6
largestHistogram([1, 1, 4, 1]) == 4
largestHistogram([1, 1, 3, 1]) == 4
largestHistogram([2, 1, 4, 5, 1, 3, 3]) == 8

The third is The Most Numbers mission and here you have to find the difference between the maximum and minimum element in a given array of numbers.

mostNumbers(1, 2, 3) == 2
mostNumbers(5, -5) == 10
mostNumbers(10.2, -2.2, 0, 1.1, 0.5) == 12.4
mostNumbers() == 0

Our congratulations to the winner of July 2020 - Atadolfo - you are totally Awesome and we are very glad to have you here with us! 👏🏼

Welcome to CheckiO - games for coders where you can improve your codings skills.

The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.

Join the Game