HackSussex Coders' Cup 2022

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 15

  • @sohantirpude2455
    @sohantirpude2455 7 месяцев назад +1

    I am really confused on how Layton's solution worked in Atbash Cypher problem. The solution works only when all characters are alphabets and in lower case strictly. It is not even passing the example given. I am not sure how it passed all the testcases.

    • @AkashShukla_IITK
      @AkashShukla_IITK Месяц назад +1

      You're right it won't work for uppercases and non-alphabets ...maybe the test cases were designed in such a way that he luckily got through with this

  • @sohantirpude2455
    @sohantirpude2455 7 месяцев назад +1

    May I know in Sudoku problem set, how the example is return True if there is no 5 in the matrix?

    • @ThomasGiles
      @ThomasGiles 7 месяцев назад +2

      Yeah I’m quite confused by that game. They said maybe 0 is allowed as a “space” in the sudoku. But nothing in the question says that.

    • @sohantirpude2455
      @sohantirpude2455 7 месяцев назад +1

      ​@@ThomasGiles But even though, the Anton is checking whether the number is less than 1 or greater than 9 here at 1:06:45 and he got all tests passed.

    • @bhuvansharma6979
      @bhuvansharma6979 4 месяца назад

      ​@@sohantirpude2455But he is returning false in case it is less than 1 or greater than 9 which is correct

    • @sohantirpude2455
      @sohantirpude2455 4 месяца назад

      @@bhuvansharma6979 Yes you are correct but that was not my question or concern. In the example, 0 is given then it should be False but in the example itself is expecting True as an answer. So, here I am not questioning the solution given by the winner but the question itself. Because Anton is checking and the tests passed but the example given is expecting wrong answer.

    • @bhuvansharma6979
      @bhuvansharma6979 4 месяца назад

      ​@@sohantirpude2455 oh my bad I didn't see the example test cases probably some error from their end if the question was solved from 1-9 constraint

  • @ThomasGiles
    @ThomasGiles 7 месяцев назад +1

    Hackers isn’t any good? Are you insane?!

  • @KeithKazamaFlick
    @KeithKazamaFlick 6 месяцев назад +1

    def Solution(a):
    return a[::-1] == a

    • @brandpcalderon5343
      @brandpcalderon5343 6 месяцев назад

      My java solution: return string.equals(new StringBuilder(string).reverse().toString());

    • @Hat00274
      @Hat00274 5 месяцев назад

      Easy