6 kyu
A for Apple
64 of 621sunboshan
Loading description...
ASCII Art
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Nice Kata!
Description is wrong:
If n is less than 4, it should return ""
anda(4) prints as
are contradictory.4 is not less than 4
C translation (author gone)
No random tests in ruby
Ruby 3.0 should be enabled (Refer this & this for more detail)
done
Node 12 should be enabled (Refer this and this for more info)
python new test framework should be used (Refer this & this for more detail)
updaded python new test framework.
done for JS
By reading the description I can't figure out how to handle cases where n is even and is not multiple of 4.
That requires your own logical thinking and reasoning !
I don't agree. The description should provide more examples, cause there are different possibilities, and no one is incorrect if it is not illustraded by a counter-example.
Awesome kata, voted up...thanks mate !!!
I am coding in Python and my result for a(4) is ' A \n A A \n A A A \nA A'. I wonder why is this wrong even though it exactly matches the expected output. Appreciate any help.
Can someone help me understand why I am getting this error?
TypeError: Object has no method 'repeat' at a at Object.Test.it at Test.describe.n at Object.Test.describe
Can anyone shed some light as to why this output does not pass the a(4) test?
Because you have redundant whitespace on each line except last.
You need to work out a way to make the tests more helpful. It's a real pain in the ass to work out how the string differs from the expected string.
Maybe, it could be a function in test section that outputs result "A" letter in multiline way, without any "\n"
JS translation submitted and thanks for having accepted my Python translation already, other than thanks for your work on this kata :)!
Didn't see your JS translation show up?
Apparently my work was lost: I did it again, enjoy :)!