• Count Safe Cells On Board With Hostile Bishops Using Knowledge About LLM's

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

We try to actively develop our presence in popular social networks and will never get tired of reminding you and inviting to our pages at Instagram and Twitter!

In the digest we are going to get briefly familiar with operation of large language models (LLMs) and try to avoid hostile bishops on a board.

๐Ÿ’กTIP

At your profile, after clicking on big percent number of your progress, you may see module and methods you have already used in your shared solutions. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

๐ŸMISSION

Dangerous Bishops by freeman_lex -

The generalized square chessboard has been taken over by an army of bishops, each bishop represented as a two-tuple (row, col) (0-base indexing) of the coordinates of the square that the bishop stands on. Given the board size n and the list of bishops on that board, count the number of safe squares that are not covered by any bishop.

safe_squares(10, []) == 100
safe_squares(4, [(2, 3), (0, 1)]) == 11
safe_squares(8, [(1, 1), (3, 5), (7, 0), (7, 6)]) == 29

๐Ÿ“–ARTICLE

How LLMs Work, Explained Without Math -

Miguel Grinberg's article, "How LLMs Work: Explained Without Math," provides a clear, non-technical explanation of how large language models (LLMs) like GPT-2 and GPT-3 operate. The article demystifies these models by explaining that they function primarily by predicting the next word (or token) in a sequence based on the input text.

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

How do you think, what the following code does?

from re import sub

def ????????(line: str) -> str:

    s = sub(r'(.)\1', r'', line)
    if s == line: return line
    return ??????????(s)

๐Ÿ™Œ 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