Beta
Last Digit of an Array
232user8795332
Loading description...
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.
Trivial map/filter/reduce is not a novel kata idea.
Somebody adopt this -- "This user has deleted their profile"
Returning inconsistent data types is not a best practice.
If you don't want an
Error
thrown when no integers are found, I guess returningundefined
is the least of the other evils in this case.This breaks all previous solutions, does anyone object to those fixes as I can rework this kata, the solutions were much cleaner than mine (no surprise, my JS is very novice level now).
This is the only thing left, if you think it is critical raise as an issue and I can rewrite it.
Hi, thanks for your comment. I wrote this Kata as an 8 kyu starter question for absolute beginners. It was similar, in my opinion, in its complexity and difficulty to the question I received when I joined the site. Thanks for letting me know it is similar to another Kata. I've unpublished it and I'll build on it from here.
It is apparent from the shockingly low quality of this Kata that the Kata author has put in no effort whatsoever to even attempt to make this Kata remotely presentable to the Community. I would suggest that you unpublish this Kata and coming up with a much better idea before publishing a new Kata.
I guess the previous version was quite bad. :P
A watered-down duplicate of this
8 kyu
Kata. This means that this Kata fails to present novel content to the user undertaking it. The lack of novel content in a Kata as an Issue is recognised as an official CW stance.This comment has been hidden.
Yeah, I'd think so.
Your Kata needs more extensive test coverage to prevent easy cheap-cheat solutions and/or logically flawed solutions. The most common way to increase test coverage is through the inclusion of randomly generated test cases at runtime so please add these. The lack of test coverage in a Kata as an Issue is recognised as an official CW stance.
It also desperately needs a fixed test where the last digit is
0
.Added.
Random tests added.