6 kyu
Best Parking Spot
153 of 292grensley
Loading description...
Algorithms
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.
python new test framework is required. updated in this fork
Approved
random tests are attackable.
fixed in OP's fork
This comment has been hidden.
kata hint != kata suggestion
my solution passes all the sample tests but doesn't pass any random tests.. it says expected zero instead got: then a random number ? when should the function return zero ?
Not an issue (issues == failure of the kata itself, here, this is only your implementation that fails!)
If you want to debug your code, print the input to the console.
This comment has been hidden.
The store is always on the left which was spec'd in the problem description.
There wasn't a default test for handling there being a shorter distance corral than the first one though. I think I'll add your test case so that gets covered.
Hi, I made a C# Translation, please review and approve.
.
Haskell translation
I had made a mistake in the parking lot code block. That's fixed - you now see only the applicable block for the selected language.
Thanks for approving!
This comment has been hidden.
So Expected (12) is not 28 steps, it's 26. 2 * 12 to the store and back, then 2 * 1 to the corral and back. Actual (11) is also 26 steps, but Expected (12) is less driving.
I haven't calculated your first example, but I suspect it's equivalent.
Does this answer your question?
This comment has been hidden.
JS translation added. Please Check & Approve ;-)
Hey zruF, not seeing it. Maybe it takes some time to show up, or maybe it wasn't formally submitted. Thanks!
Yea, there were some errors while saving. Now its published. JS Translation
nice one, this was challenging enough.