Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Doesn't this fall under the edge case 'e'? Both directions are the same, the same elevator is closer to both calls, and the elevator only has to change direction once?
Fixed tests and random tests have different input date string formats:
More crucially, why pass in date strings when passing in a
Date
object is infinitely more appropriate for the task? This is just bad kata design.Hi, I'm about to ask a dumb question (still learning.) Nothing shows up (correct or incorrect) when I press return. For reference, I'm new to js and I use VSC to do my work/study instead of regular terminal. Could someone explain please?
NASM translation
Description should be language-agnostic
The idea is not novel at all. You could at least enforce
O(1)
solutions...How can the stops array be empty ?!?
I'm tempted to think that's physically impossible - there would be no starting position for the buses.
No random tests.
Description and Initial code are inconsistent with Example tests: number of arguments is different. I can only hope Submit tests are consistent with Example ones.
Direction of buses is unspecified. Apparently, the second bus reverses through the array?
Do not rely on examples for these things. It makes us mindreaders, and we are not.
Sample tests are useless.
This comment is hidden because it contains spoiler information about the solution
Which strings are referred to here? ( Up to this point, the descripion only mentions arrays and integers. well, and a function and an object. but I'm guessing those are not what's asked anyway. )