• Use Laws of Complexity While Trying To Place Desks Into Square

Hello, checkiomates๐Ÿฑโ€๐Ÿ‘ค!

For your attention is a challenging mission about placing desks in a correct square table and an interesting article about laws of complexity in software development and other fields (I guess).

๐Ÿ’กTIP

We allow users to assign hotkeys to "Run Code", "Check Solution" and stop code. You may see current combinations on buttons and change them in editor menu. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

๐ŸMISSION

Square Conference Table by kurosawa4434 -

You must combine several long desks to make a square conference table of the specified size.

  • The input values are the widths of the long desks (tuples of integer) and the side length of the table (integer). The long desks have any width and their depth is always 1.

  • The answer is the combinations of long desks that make the four sides of the table. It must be a list of 4 tuples, each tuple being one or more integers. The adjacent tuples in the resulting list to actually represent adjacent sides of the table.

checker(square_conference_table, (1, 2, 2, 3, 4), 4) is True
checker(square_conference_table, (3, 3, 3, 3), 4) is True
checker(square_conference_table, (1, 2, 2, 3, 3, 4, 5), 5) is True

๐Ÿ“–ARTICLE

Three Laws of Software Complexity -

The author posits that most software engineers (particularly those working on infrastructural systems) are destined to wallow in unnecessary complexity due to following three fundamental laws. I guess, that these laws are suitable not only for software development and maintaining, but also for other society fields.

๐Ÿ‘ฉโ€๐Ÿ’ปCODE SHOT

How do you think, what the following code does?

def checkio(A):
    a, b = A
    for _ in range(a):
        b = b * (b / b + 1 / b)
    return round(b)

๐Ÿ™Œ Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! 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