6 kyu

Number Sequence: Smarandache descrescendo symmetric sequence

122 of 156rsa
Description
Loading description...
Algorithms
  • Please sign in or sign up to leave a comment.
  • tobeannouncd Avatar

    Haskell translation

    The description previously only had Python-specific code blocks. As there's a C++ translation, I'm not sure how the addition of Haskell-specific code blocks would affect the description there.

  • ahmet_popaj Avatar

    Quite an easy and simple kata to enjoy solving.

  • TimoNotThy Avatar

    In the description you didn't mention that n is the first argument that the function takes so it was confusing before clicking on train

  • Temson But Avatar

    Либо примеры построены неверно, либо описание не до конца ясное. Должна ли последовательность убывать после достижения максимума? n - это каждый n-ный элемент (не включая нулевой), тогда пример построен не верно где solve(2,4), если последовательность убывает! Или последняя строка последовательности должна просто достигать до максимума без продолжения?

  • rge123 Avatar

    Not too sure about the purpose of the large tests in python. My algorithm was pretty naive and I didn't do anything fancy but still passed. Maybe just have small tests or really ramp it up. To that end mine took like 5 seconds to just complie the test code so that should be sped up too.

    • Blind4Basics Avatar

      I agree. And the input range should be specified in the ddescription and reduced since there are actually no perf requirements anyway.

  • mauro-1 Avatar
  • mauro-1 Avatar

    "random tests/should work with large numbers" is a single test with a fixed number. It should be under "basic tests/should work with larger numbers".

  • Unnamed Avatar

    Missing edge case test with bound == 1. And it's not clear if bound can be < 1.