New Array Methods, Alternative Static Typing and JQuery Release.
Hello CheckiO users! 🙂
As was promiced in the previous news, all missions, that were at Polygon station, were placed in different stations! You are welcome to find and solve them to increase succed persentage of stations. Here are a few of them:
Move Zeros by freeman_lex - You are given an Array of numbers. Move all zeros in the Array to the end of it. The order of non-zero elements should not change.
assert.deepStrictEqual(moveZeros([0, 1, 0, 3, 12]), [1, 3, 12, 0, 0]); assert.deepStrictEqual(moveZeros(), );
Replace with Biggest by freeman_lex - You are given an Array of numbers data. Replace every element in it with the biggest element among the elements to its strict right (not including current element). The last element should be replaced with -1. Return modified sequence as Array of numbers.
assert.deepStrictEqual(replaceBiggest([17, 18, 5, 4, 6, 1]), [18, 6, 6, 6, 1, -1]); assert.deepStrictEqual(replaceBiggest([1, 2, 3, 4, 5, 6]), [6, 6, 6, 6, 6, -1]); assert.deepStrictEqual(replaceBiggest([1, 1, 1]), [1, 1, -1]);
Not in Order by freeman_lex - You are given an Array of numbers. Your function should return the number of elements, which are not at their places as if the Array would be sorted ascending.
assert.strictEqual(notOrder([1, 1, 4, 2, 1, 3]), 3); assert.strictEqual(notOrder([1, 1, 1, 1, 1]), 0); assert.strictEqual(notOrder([1, 2, 3, 4, 5]), 0);
jQuery 3.7.0 Released: Staying in Order - The most widely used JS library ( is used by 77% of the 10 million most popular websites) has its update. Look inside what's new!
🙌 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