• 🌐 Coordinates

checkio coding js

Hello CheckiO users! πŸ™‚

Challenge yourself with our missions

Inscribe a Contour by quarkov - Find the smallest rectangle which inscribes an arbitrary contour. In this mission you are given a list of dots, each represents a projection of a 3D model vertex onto a horizontal plane. Your task is to find the smallest rectangle (by its area) into which all the given dots (and thus the projected contour) can be inscribed.

inscribe([(1, 1), (1, 2), (0, 2), (3, 5), (3, 4), (4, 4)]) == 6.0
inscribe([(6, 5), (10, 7), (2, 8)]) == 20.0
inscribe([(2, 3), (3, 8), (8, 7), (9, 2), (3, 2), (4, 4), (6, 6), (7, 3), (5, 3)]) == 41.538

Square Board by kurosawa4434 - You are designing a board game in which tokens move around the square board with. (like in Monopoly) You need to write the function that returns the coordinates after the token has moved. The coordinates of a token are being represented by a tuple consisting of a row and column. The coordinates of a top-left one - (0, 0).

square_board(4, 1, 4) == (1, 0)
square_board(6, 2, -3) == (4, 5)

Supply Line by kurosawa4434 - Many war games have rules concerning the supply lines. Units that can’t contact the supply source face a lot of troubles. You should find the shortest supply line with Python.

supply_line('B4', {'F4'}, {'D4'}) == 6
supply_line('A3', {'A9', 'F5', 'G8'}, {'B3', 'G6'}) == 11

πŸ’‘ 3 Highlights from the Python world:

MIT offers free online course in Computer Programming using Python - An introduction to computer science as a tool to solve real-world analytical problems using Python 3.5.

Q&A with Guido van Rossum, inventor of Python - get to know how PyCon was born and Guido's amazing journey

New major versions of Flask, Jinja, Click, and Werkzeug released! - The Pallets team is pleased to announce that the next major versions for our six core projects have been released! This represents two years of work by the Pallets team and community, there are a significant number of changes and exciting new features. Check out the logs for every project to see what's new. Flask depends on the five other libraries, be sure to read them all if you're upgrading Flask.

Our congratulations to the winner of May 2021 - _Chico_ - you are totally Awesome and we are very glad to have you here with us! πŸ‘πŸΌ

The users who’ve made the TOP 3 this month are leggewie, Oleg_Babaev, and jiizzyy.You are doing great, guys! Keep on coding! πŸ‘πŸΌ

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