7 kyu
How Many Streets?
256 of 478brodiemark
Loading description...
Arrays
Searching
Performance
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.
Lua translation!
Thanks!
100k data sets for a 7kyu kata is overkill. That's why raiting falling pretty bad. I suggest limiting the amount to 1k and do not bother with efficiency (because that would put the kata in 6kyu category).
As a reminder: https://docs.codewars.com/curation/references/kata-ranks#7-kyu
The idea of the kata was to illustrate using a dictionary to improve efficiency of search. Without that, I'm not sure it's very interesting.
I have no control over the rating. It was set by the reviewers in the beta phase. My understanding is that it cannot be changed now.
Description should be language-agnostic
Done
I'd say drop
maxTest
from sample as it reveals the solution. HavingtestSimpleCases
alone should be enough to start the challenge.While I appreciate the suggestion, I prefer having the user find out earlier rather than later whether their solution is efficient enough. I'm also hesitant to make changes not suggested by the reviewers in the beta phase.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
why do you spoiler your own kata, even if it's a low level kata ..
From my point of view it's not spoiling it. One purpose of the kata is to provide instruction.
I agree with dfhwze. It seems like you've given away a bit of a spoiler for the solution!
Users to figure that part out. Also, the kata already went through the instructions part during the beta process.
The user above already figured out the solution, but didn't understand why it worked. That's what I was explaining.
this
This statement is incorrect:
The number of streets n satisfies 2 ≤ n ≤ 105. The number of drivers d satisfies 1 ≤ d ≤ 105.
I don't know why the exponent between the 10 and the 5 isn't showing for you. It's visible to me.
now ok.
it's a
<sup>
HTML tag rendering bug on Codewars: exponents are not rendered when you directly load the trainer page ( with/train
in the URL) instead of the base URLThis kata is more about
arrays
thanstrings
, I would adapt the tags.Done.