6 kyu

Complete The Pattern #12

203 of 787DivyanshBatham
Description
Loading description...
ASCII Art
Fundamentals
  • Please sign in or sign up to leave a comment.
  • cwps Avatar

    In JavaScript, if random tests generate n=0, the reference solution expects the output to be '0', which contradicts the rules in the description: If n < 1 then it should return "" i.e. empty string.

  • Princess Aura Avatar

    Just a grammar correction:
    upto is not a word. The correct spelling is up to.
    Sorry, but I've been doing all the Complete the Pattern katas, and that's been bothering me.

  • balu9 Avatar

    Good one, figuring out the number of spaces is the key here!

  • Main Avatar

    This comment has been hidden.

  • Beast Avatar

    Great kata, done this one now in Ruby and Python. I have starred all 15 of the Pattern kata that I have completed so far. Thanks !! :)

  • dsscw Avatar

    I recieve this error when running the suite:

    -isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string/join.hpp' file not found #include <boost/algorithm/string/join.hpp> ^ 1 error generated.

    I'm not sure if it's related to this exercise, but I must say it's very frustrating, having spent much time, only to find out I can't get credit for my time spent.

    @CodeWars: Please investigate!

  • KarlMaine Avatar

    Got the following error. I believe I did not use anything that is 'boost' (I'm not even familiar with that library as of yet). Please fix. Perhaps you could limit your preprocess to include only the string and algorithm. This is an epic fail for C++ version.

    "-isystem /runner/frameworks/cpp fatal error: 'boost/algorithm/string/join.hpp' file not found #include <boost/algorithm/string/join.hpp> ^ 1 error generated."

  • Rhensi Avatar

    Can't submit C++ solution, but tests run successful. I'm getting error: "fatal error: 'boost/algorithm/string/join.hpp' file not found" (I didn't use Boost in my solution). I think something wrong with Boost in all C++ Katas. You can't use it now, but I did use it a couple of days ago. So test which use Boost are broken.

  • Dentzil Avatar

    C++-Translation kumited.

    Please check it and approve. Thanks! ;)

  • user5036852 Avatar

    C#-Translation kumited!

    https://www.codewars.com/kumite/579b5791582a1b7fb1000167

    Please check and approve!

  • perfidiousscript Avatar

    This comment has been hidden.

  • gkobilansky Avatar

    This comment has been hidden.

  • tikitariki Avatar

    Spaces are being ignored in my strings. If I concat like this: 'foo ' + ' bar', the spaces won't show up. It works in my developer console.

  • ZozoFouchtra Avatar

    This comment has been hidden.