6 kyu
String Repetition without Function
316suic
Loading description...
Restricted
Puzzles
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.
Such a simple and yet an elegant kata, great chance to learn something new.
python new test framework is required. updated in this fork
Looks good, approved
This comment has been hidden.
Python new test framework should be used and 3.8 enabled
Updated in this fork
I'll be honest, I used help from stackoverflow and now I am sad how I did not guess it. Anyway, interesting kata, thank you :)
One more refreshing puzzle from suic... ;)
Thx!
Thanks :)
The rule checking seems to be lacking.
I noticed two solutions other users posted had str_repeat implemented as a function:
https://www.codewars.com/kata/reviews/57a11142b098b80b4200001b/groups/5835d4da44ff287577000130
https://www.codewars.com/kata/reviews/57a11142b098b80b4200001b/groups/57d995611a6282fc7c000073
This comment has been hidden.
I don't know why but while solving & testing, I got --- ✘ 'aaaa' should equal 'aaaa'
Interesting. Any repro steps?
suic, can I show you my code marked as spoiler content?
Yes. Paste here your code. I'm curious :)
This comment has been hidden.
This comment has been hidden.
Okay, I will try again later.
i also got the same problem, what's wrong ?
same here: 'aaaa' should equal 'aaaa' or aaaa should equal 'aaaa'
Nice.
Any hints?
TIMTOWTDI :)
IMHO this isn't so hard that it would require a hint.
Possible typo in description:
what repeats a string
, do you meanthat repeats a string
?You're right, fixed. In other three languages
what repeats a string
makes sense but not in English :)Ah ok, I only speak english so you win this round again!
Btw. thanks for proofreading :) English works different than the other languages I speak. Therefore, I sometimes (often? :)) say or write something that doesn't make sense for native speakers.
No problem, I was just trying to help out.