[Python] Checkio Solution 解答 – The Most Numbers

You are given an array of numbers (floats). You should find the difference between the maximum and minimum element. Your function should be able to handle an undefined amount of arguments. For an empty argument list, the function should return 0.

閱讀更多

[Python] Checkio Solution 解答 – Right to Left

One of the robots is charged with a simple task: to join a sequence of strings into one sentence to produce instructions on how to get around the ship. But this robot is left-handed and has a tendency to joke around and confuse its right-handed friends.

閱讀更多

[Python] Checkio Solution 解答 – Digits Multiplication

You are given a positive integer. Your function should calculate the product of the digits excluding any zeroes.

閱讀更多

[Python] Checkio Solution 解答 – Absolute Sorting

Let's try some sorting. Here is an array with the specific rules.

閱讀更多

[Python] Checkio Solution 解答 – Xs and Os Referee

Tic-Tac-Toe, sometimes also known as Xs and Os, is a game for two players (X and O) who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal rows (NW-SE and NE-SW) wins the game.

閱讀更多

[Python] Checkio Solution 解答 – Even the Last

You are given an array of integers. You should find the sum of the elements with even indexes (0th, 2nd, 4th...) then multiply this summed number and the final element of the array together. Don't forget that the first element has an index of 0.

閱讀更多

[Python] Checkio Solution 解答 – Secret Message

Ever tried to send a secret message to someone without using the postal service? You could use newspapers to tell your secret. Even if someone finds your message, it's easy to brush them off and that its paranoia and a bogus conspiracy theory. One of the simplest ways to hide a secret message is to use capital letters. Let's find some of these secret messages.

閱讀更多

[Python] Checkio Solution 解答 – Three Words

Let's teach the Robots to distinguish words and numbers.

閱讀更多

[Python] Checkio Solution 解答 – Index Power

You are given an array with positive numbers and a number N. You should find the N-th power of the element in the array with the index N. If N is outside of the array, then return -1. Don't forget that the first element has the index 0.

閱讀更多

[Python] Checkio Solution 解答 – Fizz Buzz

"Fizz buzz" is a word game we will use to teach the robots about division. Let's learn computers.

閱讀更多

Copyright © Vantopics