7 kyu
Training JS #28: methods of arrayObject---every() and some()
1,844 of 1,878myjinxin2015
Loading description...
Fundamentals
Tutorials
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.
One of the test cases in the test is missing the function name and therefore always returns false because the argument list and the result list are different
what does "is missing the function name" mean, could you be more precise ? is this about the sample tests or the full tests ?
no answer from OP
Since there is a test case like "[34339,10880,8801..." maybe add a "[34339,8801,10880 ... " is better.
one number must be neer the other number. adjacent = neer = (0,1) or (14,15).
Im no expert, but i think theese two methods doesnt make sense to use here...
JS Node 14. should be enabled and tests require cleaning
I think it was possible to find a more suitable problem for this method ...
This comment has been hidden.
This comment has been hidden.
only return
[-1, -1]
when no match is found ~~The task section of the description isn't displaying properly.
Fixed
有点尴尬.题目只是解释下了用法.内容基本没用题目所给的2个方法..觉得有点达不到练习的效果啊
我也没办法,我不能硬性要求所有人必须使用every和some来解决问题。。。
不是这个意思,我的意思是。不容易让人想到用every和some来解决.不是说一定要求.我看了下答案好像没几个是用every和some来解决的把。。。