• TS 5.0 and new Missions are here!

Hello CheckiO users! ๐Ÿ™‚

A lot of time has passed since our last meeting! Ukraine fights for its Freedom and everyone is trying to do their best.We at CheckiO team are trying to keep and improve the portal, so you can now use and enjoy TypeScript 5.0!

We have a lot of new missions placed at Polygon station for you, but all of them are going to find a new home soon!! Here are some new ones:

Median - For this mission, you are given a non-empty Array of natural numbers. With it, you must separate the upper half of the numbers from the lower half and find the median.

assert.strictEqual(median([1, 2, 3, 4, 5]), 3);
assert.strictEqual(median([3, 1, 2, 5, 3]), 3);
assert.strictEqual(median([1, 300, 2, 200, 1]), 2);

Majority by freeman_lex - We have an Array of booleans. Let's check if the majority of elements are true.

assert.strictEqual(isMajority([true, true, false, true, false]), true);
assert.strictEqual(isMajority([true, true, false]), true);
assert.strictEqual(isMajority([true, true, false, false]), false);

Common Tail by freeman_lex - You are given two Arrays of numbers. Elements are unique inside each Array. Your function should return an element, from what a common part starts and there are no different element(s) after this part - the first element of the last common part (common tail).

assert.strictEqual(commonTail([], [1, 2, 3]), null);
assert.strictEqual(commonTail([1], [1]), 1);
assert.strictEqual(commonTail([3], [1, 2, 3]), 3);

๐Ÿ’ก 3 articles from the TypeScript world:

Announcing TypeScript 5.0 - Here you can read more about what is new in the 5.0 version.

The End of Front-End Development - A lot of early-career devs are getting more and more anxious about AI. They've seen the increasingly-impressive demos from tools like GPT-4, and they worry that by the time they're fluent in HTML/CSS/JS, there won't be any jobs left for them. Or not?

Speeding up the JavaScript ecosystem - npm scripts - 'npm scripts' are executed by JavaScript developers and CI systems all around the world all the time. Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

๐Ÿ™Œ Thanks for your attention! Hope to meet you at CheckiO. We are really interested in your thoughts! Please, leave a comment below! โคต

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