home.social

#topcoder — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #topcoder, aggregated by home.social.

fetched live
  1. Python Standard Library для спортивного программирования

    Стандартная библиотека Python содержит множество инструментов, которые значительно упрощают решение задач спортивного программирования, но многие из них остаются незамеченными начинающими участниками. В статье собран краткий конспект по наиболее полезным модулям и функциям стандартной библиотеки с небольшими примерами.

    habr.com/ru/articles/1010290/

    #спортивное_программирование #питон #python #pypy #standard_library #стандартная_библиотека #стандартная_библиотека_python #icpc #codeforces #topcoder

  2. 💡 AlphaCode 2: una potente IA studiata per la programmazione competitiva
    AlphaCode 2 è un potente modello IA (LLM) utilizzato nelle competizioni di programmazione, creato grazie a Gemini Pro
    gomoot.com/alphacode-2-una-pot

    #AI #AlphaCode #codeforces #deepmind #gemini #ia #intelligenzaartificiale #programmazione #topcoder #nvidia #amd

  3. In today's #Topcoder #SRM, I got 0 due to using
    if (v[r][c])
    by mistake. What I expected to use was
    if (v[r][c] == 1)

    Thoughts:
    1. Using int as enum is error-prone. At least I should not use magic numbers.
    2. Implicitly comparing an integer with zero is dangerous. I'm spoiled by the strict typing in Rust and Java.

  4. In today's #Topcoder #SRM, I got 0 due to using
    if (v[r][c])
    by mistake. What I expected to use was
    if (v[r][c] == 1)

    Thoughts:
    1. Using int as enum is error-prone. At least I should not use magic numbers.
    2. Implicitly comparing an integer with zero is dangerous. I'm spoiled by the strict typing in Rust and Java.

  5. CW: Advent of Code

    I've given up on #AdventOfCode at day 17 (tetris). It became too time-consuming. Still, it was a nice experience.

    The puzzles started off trivial, then became gradually more challenging and also tedious. Being conditioned by programming competitions and things such as #TopCoder, I've been looking for clever algorithmic tricks to solve some, but in the end the size of problems was such that brute force usually worked okay (once I had to run the program for 30 minutes).