Retired
One Line Task: Reversed Strings (retired)
Loading description...
Puzzles
Fundamentals
Algorithms
Logic
Games
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.
No random tests either .. 2014 and counting ..
Retired anyway
not too sure what the general agreement is now but it's quite easy to 'cheat' at this kata...
This is so 2016 ..
Just do it like everybody else does. I don't really have a problem with it, you can just freeze
.toString
and cheaters will always find a way, but you have to catchf = s => g(s)
withg = unlimited function
.It should be retired, of course.
In fact, it's not new either.
It's a
String
, not anArray
. I actually could not find a duplicate. ( I searched. ) I think reversing a string is very, very slightly just different enough from reversing an array to merit another kata. And I actually liked that people could submit all sorts of different solutions within the limit.If there were a way to catch
f=(s)=>g(s)
, I'd actually prefer to count body length instead of code length too.we just should check if functions name is 'f'
there actually is a couple of ways to determine how far down the stack you are in terms of functions
There was a kata about that, but you had to exception out of your function to determine how deep you were.
Is there a workable way to determine from outside the function how deep into it you are? That would be useful.
Retired - no use keeping the issue open
Probably not in JS.
This comment has been hidden.
Thanks, I changed limit to 27 characters
I thought about this link, how this can pass?
It's because we count length of the functions body
Ok, thanks.